GrpcMetadata QML Type
GrpcMetadataは、順序なしのマルチマップコンテナにメタデータを格納するクラスです。詳細...
Import Statement: | import QtGrpc |
Since: | Qt 6.7 |
プロパティ
- data : QVariantMap
詳細説明
メタデータとは、特定の gRPC™キーは文字列で、値は通常は文字列ですが、バイナリデータでもかまいません。このクラスは、順序のないコンテナにデータを格納する可能性を提供します。また、同じキーで複数の値を格納することも可能です。
注: 同じキーで複数の値を設定するには、カンマ記号を使用します。
プロパティ・ドキュメンテーション
data : QVariantMap |
メタデータコンテナへのアクセスを提供し、それを QML のQVariantMap フォーマットで設定する。
注意: Data はREQUIRED
プロパティです。オブジェクト生成時に設定する必要があります。
注: 同じキーで複数の値を設定するには、カンマ記号を使用します。以下の例を参照してください:
GrpcMetadata { id: grpcData data: ({ "user-name": "localhost, remotehost", "user-password": "qwerty, 123456"}) }
© 2025 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.