QtProtobuf::Any Class

class QtProtobuf::Any

A helper class to simplify working with the protobuf Any type. More...

Header: #include <Any>
CMake: find_package(Qt6 REQUIRED COMPONENTS ProtobufWellKnownTypes)
target_link_libraries(mytarget PRIVATE Qt6::ProtobufWellKnownTypes)
qmake: QT += protobufwellknowntypes
Since: Qt 6.6
Inherits: QProtobufMessage

This class is equality-comparable.

Detailed Description

The Any class enables easy casting to and from other types using as() and fromMessage().

It is the type used in code generated by qtprotobufgen when a message contains a field of the google.protobuf.Any type.