QQmlGrpcHttp2Channel QML Type

Implements QQmlAbstractGrpcChannel class in QML. More...

Import Statement: import QtGrpc
Since: Qt 6.7
Instantiates: QGrpcHttp2Channel



  • std::shared_ptr<QAbstractGrpcChannel> getChannel()

Detailed Description

Implements 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.

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

See also QQmlAbstractGrpcChannel and QGrpcHttp2Channel.

Property Documentation

Returns a pointer to the QQmlGrpcChannelOptions object.

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

See also QQmlGrpcChannelOptions.

Method Documentation

std::shared_ptr<QAbstractGrpcChannel> getChannel()

This function is virtual. It returns the pointer to the QGrpcHttp2Channel object.

See also QAbstractGrpcChannel and QGrpcHttp2Channel.

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