Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qtqml-tooling-qmlpreview.qdoc
Go to the documentation of this file.
1
// Copyright (C) 2023 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4
/*!
5
\page qtqml-tooling-qmlpreview.html
6
\title qmlpreview
7
\brief A tool that provides a live updating preview for the QML files.
8
\ingroup qtqml-tooling
9
\ingroup qtqml-tooling-design
10
11
\section1 The Qml Preview
12
The QML Preview tool watches QML and JavaScript files on disk and updates
13
the application live with any changes. The application to be previewed
14
has to have QML debugging enabled. \l {details}{More...}
15
16
\table
17
\header
18
\li Usage
19
\row
20
\li qmlpreview [\l{options}] executable [parameters...]
21
\endtable
22
23
\section2 options
24
25
\table
26
\header
27
\li Option
28
\li Description
29
\row
30
\li --verbose
31
\li Print debugging output.
32
\row
33
\li -h, --help
34
\li Displays help on commandline options.
35
\row
36
\li --help-all
37
\li Displays help, including generic Qt options.
38
\row
39
\li -v, --version
40
\li Displays version information.
41
\endtable
42
43
\section2 Arguments
44
45
\table
46
\header
47
\li Argument
48
\li Description
49
\row
50
\li executable
51
\li The path of the executable file that loads a QML document.
52
\row
53
\li parameters
54
\li Arguments of the executable
55
56
\endtable
57
58
\section2 Details
59
\target details
60
61
\section3 Enable QML Debugging
62
To enable QML debugging, make sure you build your application with appropriate
63
configuration parameters. When using qmake, you should add \c {CONFIG+=qml_debug}
64
in the \c {.pro} file. If you use another build system, then \c {QT_QML_DEBUG}
65
variable should be defined.
66
67
\badcode
68
qt_add_executable(MyApp
69
...
70
)
71
72
target_compile_definitions(MyApp PRIVATE QT_QML_DEBUG)
73
\endcode
74
75
*/
qtdeclarative
src
qml
doc
src
tools
qtqml-tooling-qmlpreview.qdoc
Generated on
for Qt by
1.14.0