QT_USE_PROTOBUF_LIST_ALIASES

Habilita los alias de tipo « QList » en el código generado

Esta propiedad se introdujo en Qt 6.9.

Nota: Esta propiedad se encuentra en fase de vista previa tecnológica y puede sufrir cambios en futuras versiones.

Controla la definición de « QT_USE_PROTOBUF_LIST_ALIASES ». Esta definición habilita los alias de tipo para la « QList » de los mensajes protobuf en el código generado.

Establece esta propiedad en « TRUE » para habilitar la definición para el destino protobuf. Establece en « FALSE » para deshabilitarla. El valor predeterminado es « TRUE ».

qt6_add_protobuf(protobuf_target
    ...
)
set_target_properties(protobuf_target PROPERTIES
    QT_USE_PROTOBUF_LIST_ALIASES FALSE
)

Nota: La generación de alias de tipo para QList de mensajes protobuf provoca conflictos de nombres si el esquema .proto incluye mensajes con sufijos Repeated. Para evitar estos conflictos, establece la propiedad en FALSE.

Véase también «Configuración de variables y propiedades de CMake».

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