Qt CMake ポリシー

Qt CMake ポリシーは、複数のリリースにまたがる後方互換性を維持します。すべての新しいポリシーは、非推奨の機能や動作についての警告から始まります。ポリシーの警告を無効にするには、qt_policy()コマンドを使用して、ポリシーのNEW または非後方互換の動作を明示的に要求します。

ポリシー

QTP0001

':/qt/qml/'はQMLモジュールのデフォルトのリソースプレフィックスです。

QTP0002

Android固有のパスを指定するターゲット・プロパティには、ジェネレータ式を含めることができます。

QTP0003

Qt ライブラリを作成する際には BUILD_SHARED_LIBS の値を考慮してください。

QTP0004

QML モジュールの中に QML ファイルを含むディレクトリを追加するには、qmldir ファイルを追加する必要があります。

QTP0005

Qt_add_qml_module の DEPENDENCIES 引数には、以下のターゲットが指定できます。

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