On this page

qmlpreview

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

Usage
qmlpreview [options] executable [parameters...]

options

OptionDescription
–verbosePrint debugging output.
-h, –helpDisplays help on commandline options.
–help-allDisplays help, including generic Qt options.
-v, –versionDisplays version information.
–resource <qrc file>Pass a .qrc file to help qmlpreview resolve resource paths to file system paths.

Arguments

ArgumentDescription
executableThe path of the executable file that loads a QML document.
parametersArguments of the executable

Details

Enable QML Debugging

To use qmlpreview on an executable, the executable must be built with the QML debugging infrastructure enabled.

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