本页内容

Qt MQTT C++ Classes

提供了一组类,用于通过 MQTT 协议发送消息。更多内容...

命名空间

QMqtt

包含Qt MQTT 模块中使用的各类标识符

类

QMqttAuthenticationProperties

表示身份验证过程中的配置选项

QMqttClient

表示与 MQTT 代理进行通信的核心访问点

QMqttConnectionProperties

表示 QMqttClient 在调用 QMqttClient::connectToHost() 时可传递给服务器的配置选项

QMqttLastWillProperties

表示 QMqttClient 在连接服务器时指定“最后遗嘱”时可传递给服务器的配置选项

QMqttMessage

基于订阅从消息代理接收的消息的相关信息

QMqttMessageStatusProperties

表示服务器在消息传递过程中提供的附加信息

QMqttPublishProperties

表示用于发送或接收消息的配置选项

QMqttServerConnectionProperties

表示 QMqttClient 所连接的服务器的配置选项

QMqttStringPair

表示 MQTT 5.0 标准中的字符串对数据类型

QMqttSubscription

接收来自 MQTT 消息代理关于指定主题的通知

QMqttSubscriptionProperties

表示 QMqttClient 在订阅主题过滤器时可传递给服务器的配置选项

QMqttTopicFilter

表示一个 MQTT 主题过滤器

QMqttTopicName

表示一个 MQTT 主题名称

QMqttUnsubscriptionProperties

表示 QMqttClient 在取消订阅主题过滤器时可传递给服务器的配置选项

QMqttUserProperties

表示可传递给服务器的 QMqttStringPair 值列表

详细说明

该 Qt MQTT 页面包含有关如何使用该模块的信息。

© 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.