GrpcHttp2Channel QML Type

HTTP/2 QML 通道。更多

Import Statement: import QtGrpc
Since: Qt 6.7
In C++: QGrpcHttp2Channel

属性

详细说明

为 HTTP/2 通道类型实现QAbstractGrpcChannel 接口。它允许设置创建通道所需的QGrpcChannelOptions 选项,并返回指向QAbstractGrpcChannel 对象的指针。

注: 您可以继承QGrpcChannelOptions ,以便在 QML 中导入自定义通道。

另请参阅 QGrpcHttp2Channel

属性文档

hostUri : url

为通道设置主机URL

注: host 是REQUIRED 属性。必须在创建对象时设置。

另请参阅 QGrpcHttp2Channel::hostUri


options : GrpcChannelOptions

返回指向GrpcChannelOptions 对象的指针。

另请参阅 QGrpcChannelOptions


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