doc: document qmlpreview

Change-Id: I6e526c8a6526a2b3da443c310dab6690db9d9b3f
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
Semih Yavuz 2023-10-12 14:26:11 +02:00
parent c9bdd4d756
commit 259452ae4f
2 changed files with 68 additions and 0 deletions

View File

@ -36,6 +36,10 @@
\externalpage https://doc.qt.io/qtcreator/creator-qml-performance-monitor.html
\title Qt Creator: QML Profiler
*/
/*!
\externalpage https://doc.qt.io/qtcreator/creator-live-preview-desktop.html
\title Qt Creator: QML Preview On Desktop
*/
/*!
\externalpage https://fontawesome.com/
\title Font Awesome

View File

@ -7,4 +7,68 @@
\brief Overview of the qmlpreview utility.
\ingroup qtqml-tooling
\section1 The Qml Preview
The QML Preview tool watches QML and JavaScript files on disk and updates
the application live with any changes. The application to be previewed
has to have QML debugging enabled. \l {details}{More...}
\table
\header
\li Usage
\row
\li qmlpreview [\l{options}] executable [parameters...]
\endtable
\section2 options
\table
\header
\li Option
\li Description
\row
\li --verbose
\li Print debugging output.
\row
\li -h, --help
\li Displays help on commandline options.
\row
\li --help-all
\li Displays help, including generic Qt options.
\row
\li -v, --version
\li Displays version information.
\endtable
\section2 Arguments
\table
\header
\li Argument
\li Description
\row
\li executable
\li The path of the executable file that loads a QML document.
\row
\li parameters
\li Arguments of the executable
\endtable
\section2 Details
\target details
\section3 Enable QML Debugging
To enable QML debugging, make sure you build your application with appropriate
configuration parameters. When using qmake, you should add \c {CONFIG+=qml_debug}
in the \c {.pro} file. If you use another build system, then \c {QT_QML_DEBUG}
variable should be defined.
\badcode
qt_add_executable(MyApp
...
)
target_compile_definitions(MyApp PRIVATE QT_QML_DEBUG)
\endcode
*/