Qt Protobuf Well-Known Types C++ Classes

Qt Protobuf 잘 알려진 유형 모듈은 잘 알려진 유형 패키지에서 제공되는 일부 유형에 대한 지원을 제공합니다. 더 보기...

이 모듈은 Qt 6.6에 도입되었습니다.

클래스

QtProtobuf::Any

프로토뷰 Any 형 작업을 단순화하기 위한 헬퍼 클래스

자세한 설명

QtProtobufWellKnownTypes에는 다음과 같은 프로토 부프 잘 알려진 형이 포함되어 있습니다: 지원되는 형:

프로젝트에서 잘 알려진 유형을 사용하려면 인터페이스에 해당 Google .proto 파일을 포함할 수 있습니다:

syntax = "proto3";
package somepackage;
import "google/protobuf/any.proto";
message Message {
    google.protobuf.Any payload = 1;
}

나열된 유형을 사용하려면 CMakeLists.txt 파일에 다음 줄을 추가하여 QtProtobuf WellKnownTypes 라이브러리와 연결해야 합니다:

target_link_libraries(YourTargetName PRIVATE Qt::ProtobufWellKnownTypes)

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