1// Copyright (C) 2023 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
5\page qtqml-tooling-qmlpreview.html
7\brief Overview of the qmlpreview utility.
10\section1 The Qml Preview
11The QML Preview tool watches QML and JavaScript files on disk and updates
12the application live with any changes. The application to be previewed
13has to have QML debugging enabled. \l {details}{More...}
19 \li qmlpreview [\l{options}] executable [parameters...]
30 \li Print debugging output.
33 \li Displays help on commandline options.
36 \li Displays help, including generic Qt options.
39 \li Displays version information.
50 \li The path of the executable file that loads a QML document.
53 \li Arguments of the executable
60\section3 Enable QML Debugging
61To enable QML debugging, make sure you build your application with appropriate
62configuration parameters. When using qmake, you should add \c {CONFIG+=qml_debug}
63in the \c {.pro} file. If you use another build system, then \c {QT_QML_DEBUG}
64variable should be defined.
67 qt_add_executable(MyApp
71 target_compile_definitions(MyApp PRIVATE QT_QML_DEBUG)