GrpcHttp2Channel QML Type
HTTP/2 QML 通道。更多...
| Import Statement: | import QtGrpc |
| Since: | Qt 6.7 |
| In C++: | QGrpcHttp2Channel |
属性
详细说明
实现用于 HTTP/2 通道类型的 `QAbstractGrpcChannel ` 接口。它允许设置通道创建所需的 `QGrpcChannelOptions ` 选项,并返回指向基于 `QAbstractGrpcChannel` 的对象的指针。
注意: 若要在 QML 中导入自定义通道,可以 继承自QGrpcChannelOptions 。
另请参阅 QGrpcHttp2Channel 。
属性文档
hostUri : url
为该频道设置主机URL 。
注意:host 是REQUIRED 的属性。在创建对象时必须设置该属性。
另请参阅 QGrpcHttp2Channel::hostUri 。
options : GrpcChannelOptions
返回指向GrpcChannelOptions 对象的指针。
另请参阅 QGrpcChannelOptions 。
© 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.