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