From c2a2e5b613865a97c033548a971898d058133e26 Mon Sep 17 00:00:00 2001 From: Semih Yavuz Date: Thu, 12 Oct 2023 15:56:26 +0200 Subject: doc: document qml tool Change-Id: Iff0afe38883d68d9bf72bc5e170cf6e17bc4e05f Reviewed-by: Ulf Hermann --- src/qml/doc/src/tools/qtqml-tooling-qml.qdoc | 97 ++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) (limited to 'src/qml/doc/src') diff --git a/src/qml/doc/src/tools/qtqml-tooling-qml.qdoc b/src/qml/doc/src/tools/qtqml-tooling-qml.qdoc index 48456d48a6..6a0a335839 100644 --- a/src/qml/doc/src/tools/qtqml-tooling-qml.qdoc +++ b/src/qml/doc/src/tools/qtqml-tooling-qml.qdoc @@ -7,4 +7,101 @@ \brief Overview of the qml command line utility. \ingroup qtqml-tooling +\section1 The qml utility +\c 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 \l {Prototyping with the QML Runtime Tool}{here}. + +\table +\header + \li Usage: +\row + \li qml [\l{options}] files... [-- args...] +\endtable + +\section2 options + +\table +\header + \li Option + \li Description +\row + \li -h, --help + \li Displays help on commandline options. +\row + \li --help-all + \li Displays help, including generic Qt options. +\row + \li -v, --version + \li Displays version information. +\row + \li -a, --apptype + \li Select which application class to use. Default is gui. +\row + \li -I + \li Prepend the given path to the import paths. +\row + \li -f + \li Load the given file as a QML file. +\row + \li -c, --config + \li Load the given built-in configuration or configuration file. +\row + \li --list-conf + \li List the built-in configurations. +\row + \li --translation + \li Load the given file as the translations file. +\row + \li --dummy-data + \li Load QML files from the given directory as context properties. (deprecated) +\row + \li --desktop + \li Force use of desktop OpenGL (AA_UseDesktopOpenGL). +\row + \li --gles + \li Force use of GLES (AA_UseOpenGLES). +\row + \li --software + \li Force use of software rendering (AA_UseSoftwareOpenGL). +\row + \li --core-profile + \li Force use of OpenGL Core Profile. +\row + \li --disable-context-sharing + \li Disable the use of a shared GL context for QtQuick Windows +\row + \li --enable-shader-cache + \li Enable persistent caching of generated shaders +\row + \li --transparent + \li Requests an alpha channel in order to enable semi-transparent windows. +\row + \li --multisample + \li Requests 4x multisample antialiasing. +\row + \li --quiet + \li Suppress all output. +\row + \li --verbose + \li Print information about what qml is doing, like specific file URLs being loaded. +\row + \li --slow-animations + \li Run all animations in slow motion. +\row + \li --fixed-animations + \li Run animations off animation tick rather than wall time. +\row + \li -r, --rhi + \li Set the backend for the Qt graphics abstraction (RHI). Backend is one of: + default, vulkan, metal, d3d11, gl +\row + \li -S + \li Add selector to the list of QQmlFileSelectors. + +\endtable + + */ -- cgit v1.2.3