GrpcHttp2Channel QML Type

HTTP/2 QML channel. 更多...

import 语句: import QtGrpc
Since: Qt 6.7
在 C++: QGrpcHttp2Channel

特性

详细描述

Implements the QAbstractGrpcChannel interface for HTTP/2 channel type. It allows to set QGrpcChannelOptions options required for a channel creation and returns a pointer to the QAbstractGrpcChannel -based object.

注意: You can inherit from QGrpcChannelOptions for importing custom channel in QML.

另请参阅 QGrpcHttp2Channel .

特性文档编制

hostUri : url

Sets a host URL for the channel.

注意: host is REQUIRED property. It must be set for object creation.

另请参阅 QGrpcHttp2Channel::hostUri .

options : GrpcChannelOptions

返回指针指向 GrpcChannelOptions 对象。

另请参阅 QGrpcChannelOptions .