QT_USE_PROTOBUF_LIST_ALIASES
Enables QList type aliases in generated code
This property was introduced in Qt 6.9.
Note: This property is in technology preview and may change in future releases.
Controls the QT_USE_PROTOBUF_LIST_ALIASES
definition. The definition enables type aliases for the QList of protobuf messages in the generated code.
Set this property to TRUE
to enable the definition for the protobuf target. Set it to FALSE
to disable it. The default value is TRUE
.
qt6_add_protobuf(protobuf_target ... ) set_target_properties(protobuf_target PROPERTIES QT_USE_PROTOBUF_LIST_ALIASES FALSE )
Note: Generating type aliases for QList of protobuf messages leads to name clashes if the .proto
schema includes messages with Repeated
suffixes. To avoid these conflicts, set the property to FALSE
.
© 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.