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
\row
42
\li --resource <qrc file>
43
\li Pass a .qrc file to help qmlpreview resolve resource paths to file system paths.
44
\endtable
45
46
\section2 Arguments
47
48
\table
49
\header
50
\li Argument
51
\li Description
52
\row
53
\li executable
54
\li The path of the executable file that loads a QML document.
55
\row
56
\li parameters
57
\li Arguments of the executable
58
59
\endtable
60
61
\section2 Details
62
\target details
63
64
\section3 Enable QML Debugging
65
To enable QML debugging, make sure you build your application with appropriate
66
configuration parameters. When using qmake, you should add \c {CONFIG+=qml_debug}
67
in the \c {.pro} file. If you use another build system, then \c {QT_QML_DEBUG}
68
variable should be defined.
69
70
\badcode
71
qt_add_executable(MyApp
72
...
73
)
74
75
target_compile_definitions(MyApp PRIVATE QT_QML_DEBUG)
76
\endcode
77
78
*/
qtdeclarative
src
qml
doc
src
tools
qtqml-tooling-qmlpreview.qdoc
Generated on
for Qt by
1.16.1