qmlpreview

Qml プレビュー

QMLプレビューツールは、ディスク上のQMLファイルとJavaScriptファイルを監視し、変更があればアプリケーションをライブで更新します。プレビューするアプリケーションはQMLデバッグが有効になっている必要があります。詳細...

使い方
qmlpreview[オプション] 実行形式 [パラメータ...]...

オプション

オプション説明
-冗長デバッグ出力を表示する。
-h, -helpコマンドラインオプションのヘルプを表示します。
-help-all一般的な Qt オプションを含むヘルプを表示します。
-v, -versionバージョン情報を表示します。

引数

引数説明
実行ファイルQML文書をロードする実行ファイルのパス。
パラメータ実行ファイルの引数

詳細

QMLデバッグを有効にする

QMLデバッグを有効にするには、適切なコンフィギュレーション・パラメータを指定して アプリケーションをビルドしてください。qmake を使用する場合は、.pro ファイルにCONFIG+=qml_debug を追加してください。他のビルドシステムを使用する場合は、QT_QML_DEBUG 変数を定義する必要があります。

qt_add_executable(MyApp
...
)

target_compile_definitions(MyApp PRIVATE QT_QML_DEBUG)

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