QQmlAbstractGrpcChannel QML Type

The QQmlAbstractGrpcChannel class is interface that represents common gRPC channel functionality in QML. 更多...

import 语句: import QtGrpc
Since: Qt 6.7

方法

详细描述

You may implement this interface to create your own channels for gRPC transport. QQmlAbstractGrpcChannel is not creatable in QML, but it can be used for custom channel implementation.

注意: QQmlGrpcHttp2Channel , which are full implementations of QQmlAbstractGrpcChannel, is recommended to use for HTTP2 protocol.

另请参阅 QAbstractGrpcChannel and QQmlGrpcHttp2Channel .

方法文档编制

std::shared_ptr < QAbstractGrpcChannel > getChannel ()

This function returns the pointer to the gRPC channel object. This is a pure virtual function. You may override that function in the derived class.

另请参阅 QAbstractGrpcChannel and QQmlGrpcHttp2Channel .