QQmlGrpcHttp2Channel QML Type

实现 QQmlAbstractGrpcChannel class in QML. 更多...

import 语句: import QtGrpc
Since: Qt 6.7
实例化: QGrpcHttp2Channel

特性

方法

详细描述

实现 QQmlAbstractGrpcChannel interface for HTTP2 channel type. It allows to set QQmlGrpcChannelOptions options required for a channel creation and returns a pointer to the QAbstractGrpcChannel -based object.

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

另请参阅 QQmlAbstractGrpcChannel and QGrpcHttp2Channel .

特性文档编制

options : QQmlGrpcChannelOptions

返回指针指向 QQmlGrpcChannelOptions 对象。

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

另请参阅 QQmlGrpcChannelOptions .

方法文档编制

std::shared_ptr < QAbstractGrpcChannel > getChannel ()

This function is virtual. It returns the pointer to the QGrpcHttp2Channel 对象。

另请参阅 QAbstractGrpcChannel and QGrpcHttp2Channel .