qml

The qml utility

The qml utility tool loads QML documents and creates a window to show the scene if your QML document includes a visual item. You can also evaluate non-visual QML documents with it. It is mainly meant for testing your QML applications or components quickly as described in here.

Usage:
qml [options] files... [– args...]

options

OptionDescription
-h, –helpDisplays help on commandline options.
–help-allDisplays help, including generic Qt options.
-v, –versionDisplays version information.
-a, –apptype <core|gui|widget>Select which application class to use. Default is gui.
-I <path>Prepend the given path to the import paths.
-f <file>Load the given file as a QML file.
-c, –config <file>Load the given built-in configuration or configuration file.
–list-confList the built-in configurations.
–translation <file>Load the given file as the translations file.
–dummy-data <file>Load QML files from the given directory as context properties. (deprecated)
–desktopForce use of desktop OpenGL (AA_UseDesktopOpenGL).
–glesForce use of GLES (AA_UseOpenGLES).
–softwareForce use of software rendering (AA_UseSoftwareOpenGL).
–core-profileForce use of OpenGL Core Profile.
–disable-context-sharingDisable the use of a shared GL context for QtQuick Windows
–enable-shader-cacheEnable persistent caching of generated shaders
–transparentRequests an alpha channel in order to enable semi-transparent windows.
–multisampleRequests 4x multisample antialiasing.
–quietSuppress all output.
–verbosePrint information about what qml is doing, like specific file URLs being loaded.
–slow-animationsRun all animations in slow motion.
–fixed-animationsRun animations off animation tick rather than wall time.
-r, –rhi <backend>Set the backend for the Qt graphics abstraction (RHI). Backend is one of: default, vulkan, metal, d3d11, gl
-S <selector>Add selector to the list of QQmlFileSelectors.

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