实现 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 .