QQmlAbstractGrpcChannel QML Type

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

Import Statement: import QtGrpc
Since: Qt 6.7


  • std::shared_ptr<QAbstractGrpcChannel> getChannel()

Detailed Description

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.

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

See also QAbstractGrpcChannel and QQmlGrpcHttp2Channel.

Method Documentation

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.

See also QAbstractGrpcChannel and QQmlGrpcHttp2Channel.

© 2024 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.