이 페이지에서

GrpcChannelOptions QML Type

GrpcChannelOptions는 추가 채널 옵션을 설정하는 데 사용되는 스토리지 클래스입니다. 더 보기...

Import Statement: import QtGrpc
Since: Qt 6.7
In C++: QGrpcChannelOptions

속성

상세 설명

서비스와 통신하는 데 사용되는 채널 옵션에 접근할 수 있는 일련의 속성을 제공합니다. gRPC™ 서비스와 통신하는 데 사용하는 채널 옵션에 접근할 수 있는 속성 집합을 제공합니다.

QGrpcChannelOptions도 참조하십시오 .

속성 설명

deadlineTimeout : int

채널에 대한 마감일 값을 설정합니다.

QGrpcChannelOptions::deadlineTimeout도 참조하십시오 .

metadata : GrpcMetadata

채널에 사용되는 메타데이터 객체에 대한 포인터를 설정합니다.

GrpcMetadata도 참조하십시오 .

serializationFormat : enumeration [since 6.8]

채널의 직렬화 형식을 설정합니다. 기본적으로 ‘ QtGrpc::SerializationFormat::Default ’ 형식이 사용됩니다.

상수설명
QtGrpc.SerializationFormat.Default기본 QGrpcSerializationFormat 프리셋입니다. 이 프리셋은 빈 콘텐츠 유형 접미사를 가진 QProtobufSerializer 를 생성합니다.
QtGrpc.SerializationFormat.Protobuf임베디드 프로토버프(protobuf) QGrpcSerializationFormat 프리셋입니다. 이 프리셋은 콘텐츠 유형 접미사로 ` proto `을 가진 QProtobufSerializer 를 생성합니다.
QtGrpc.SerializationFormat.Json내장 JSON QGrpcSerializationFormat 프리셋입니다. 이 프리셋은 json 콘텐츠 유형 접미사를 가진 QProtobufJsonSerializer 객체를 생성합니다.

이 속성은 Qt 6.8에서 도입되었습니다.

QGrpcChannelOptions::serializationFormat, QtGrpc::SerializationFormat 및 QGrpcSerializationFormat항목도 참조하십시오 .

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