QT_USE_PROTOBUF_LIST_ALIASES
生成されるコードでQList の型エイリアスを有効にします
このプロパティは Qt 6.9 で導入されました。
注:この プロパティはテクノロジープレビュー段階にあり、将来のリリースで変更される可能性があります。
QT_USE_PROTOBUF_LIST_ALIASES の定義を制御します。この定義により、生成されたコード内で、protobufメッセージのQList に対する型エイリアスが有効になります。
このプロパティを「TRUE 」に設定すると、protobuf ターゲットの定義が有効になります。「FALSE 」に設定すると無効になります。デフォルト値は「TRUE 」です。
qt6_add_protobuf(protobuf_target
...
)
set_target_properties(protobuf_target PROPERTIES
QT_USE_PROTOBUF_LIST_ALIASES FALSE
)注: protobufメッセージのQList に対して型エイリアスを生成すると 、.proto スキーマにRepeated という接尾辞を持つメッセージが含まれている場合、名前の競合が発生します。この競合を回避するには、このプロパティをFALSE に設定してください。
© 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.