本页内容

Qt GRPC QML Types

该模块于 Qt 6.7 中引入。

Qt GRPC Quick 模块在 QML 中提供了Qt GRPC 功能。

您可以在 .qml 文件中使用以下导入语句,将这些 QML 类型导入到应用程序中:

import QtGrpc

QML 类型

GrpcCallOptions

用于设置额外调用选项的存储类

GrpcChannelOptions

用于设置额外通道选项的存储类

GrpcHttp2Channel

HTTP/2 QML 通道

GrpcMetadata

用于在无序多映射容器中存储元数据的类

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