QT_USE_PROTOBUF_LIST_ALIASES | Qt Protobuf | Qt 6.11.2
Description: Enables QList type aliases in generated code

- Qt 6.11
- Qt Protobuf
- CMake Target Properties in Qt6 Protobuf
- QT_USE_PROTOBUF_LIST_ALIASES
- Qt 6.11.2 Reference Documentation

# 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`.