GrpcMetadata QML Type
GrpcMetadata는 메타데이터를 순서가 없는 멀티맵 컨테이너에 저장하는 클래스입니다. 더 보기...
| Import Statement: | import QtGrpc |
| Since: | Qt 6.7 |
속성
- data : QVariantMap
상세 설명
메타데이터는 특정 gRPC™ 호출 또는 채널(예: 인증 정보)에 대한 정보로, 키-값 쌍의 목록 형태로 제공됩니다. 여기서 키는 문자열이며, 값은 일반적으로 문자열이지만 바이너리 데이터일 수도 있습니다. 이 클래스는 정렬되지 않은 컨테이너에 데이터를 저장할 수 있는 기능을 제공합니다. 또한, 동일한 키에 여러 값을 저장할 수도 있습니다.
참고: 동일한 키에 여러 값을 설정하려면 쉼표 기호를사용하십시오 .
속성 설명
data : QVariantMap
QML에서 메타데이터 컨테이너에 대한 액세스를 제공하고, 이를 ` QVariantMap ` 형식으로 설정합니다.
참고: 데이터는 ` REQUIRED ` 속성입니다. 객체를 생성하려면 이 속성을 반드시 설정해야 합니다.
참고: 동일한 키에 여러 값을 설정하려면 쉼표 기호를사용하십시오 . 아래 예제를 참조하십시오:
GrpcMetadata {
id: grpcData
data: ({ "user-name": "localhost, remotehost",
"user-password": "qwerty, 123456"})
}© 2026 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.