本页内容

Qt WebChannel C++ Classes

提供Qt WebChannel 功能的C++类列表。更多内容...

类

QWebChannel

将 QObject 暴露给远程 HTML 客户端

QWebChannelAbstractTransport

C++ QWebChannel 服务器与 HTML/JS 客户端之间的通信通道

详细说明

要在您的应用程序中使用这些类,请使用以下包含语句:

#include <QtWebChannel/QtWebChannel>

要链接该模块,请在您的qmake`.pro ` 文件中添加以下行:

QT += webchannel

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.