Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qtqml-tooling-qml.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-qml.html
6\title qml
7\brief Overview of the qml command line utility.
8\ingroup qtqml-tooling
9
10\section1 The qml utility
11\c The qml utility tool loads QML documents and creates a window to show the scene
12if your QML document includes a visual item. You can also evaluate non-visual QML
13documents with it.
14It is mainly meant for testing your QML applications or components quickly
15as described in \l {Prototyping with the QML Runtime Tool}{here}.
16
17\table
18\header
19 \li Usage:
20\row
21 \li qml [\l{options}] files... [-- args...]
22\endtable
23
24\section2 options
25
26\table
27\header
28 \li Option
29 \li Description
30\row
31 \li -h, --help
32 \li Displays help on commandline options.
33\row
34 \li --help-all
35 \li Displays help, including generic Qt options.
36\row
37 \li -v, --version
38 \li Displays version information.
39\row
40 \li -a, --apptype <core|gui|widget>
41 \li Select which application class to use. Default is gui.
42\row
43 \li -I <path>
44 \li Prepend the given path to the import paths.
45\row
46 \li -f <file>
47 \li Load the given file as a QML file.
48\row
49 \li -c, --config <file>
50 \li Load the given built-in configuration or configuration file.
51\row
52 \li --list-conf
53 \li List the built-in configurations.
54\row
55 \li --translation <file>
56 \li Load the given file as the translations file.
57\row
58 \li --dummy-data <file>
59 \li Load QML files from the given directory as context properties. (deprecated)
60\row
61 \li --desktop
62 \li Force use of desktop OpenGL (AA_UseDesktopOpenGL).
63\row
64 \li --gles
65 \li Force use of GLES (AA_UseOpenGLES).
66\row
67 \li --software
68 \li Force use of software rendering (AA_UseSoftwareOpenGL).
69\row
70 \li --core-profile
71 \li Force use of OpenGL Core Profile.
72\row
73 \li --disable-context-sharing
74 \li Disable the use of a shared GL context for QtQuick Windows
75\row
76 \li --enable-shader-cache
77 \li Enable persistent caching of generated shaders
78\row
79 \li --transparent
80 \li Requests an alpha channel in order to enable semi-transparent windows.
81\row
82 \li --multisample
83 \li Requests 4x multisample antialiasing.
84\row
85 \li --quiet
86 \li Suppress all output.
87\row
88 \li --verbose
89 \li Print information about what qml is doing, like specific file URLs being loaded.
90\row
91 \li --slow-animations
92 \li Run all animations in slow motion.
93\row
94 \li --fixed-animations
95 \li Run animations off animation tick rather than wall time.
96\row
97 \li -r, --rhi <backend>
98 \li Set the backend for the Qt graphics abstraction (RHI). Backend is one of:
99 default, vulkan, metal, d3d11, gl
100\row
101 \li -S <selector>
102 \li Add selector to the list of QQmlFileSelectors.
103
104\endtable
105
106
107*/