QT5OPTIONS(7)
โจ NAME โจ
qt5options โ the common commandline options that every single application built on the Qtโข toolkit shares. one page, all the apps, we love a communal queen ๐
๐ SYNOPSIS ๐
Qt application [-style= style / -style style]
[-stylesheet= stylesheet / -stylesheet stylesheet]
[-widgetcount] [-reverse] [-qmljsdebugger= port]
[-platform platformName[:options]]
[-platformpluginpath path] [-platformtheme platformTheme]
[-plugin plugin] [-qwindowgeometry geometry]
[-qwindowicon icon] [-qwindowtitle title] [-reverse]
[-session session] [-display hostname:screen_number]
[-geometry geometry] [-dialogs= [xp|none]]
[-fontengine= freetype] [-h, --help and -? on Windowsยฎ]
[-v --version]
๐ OPTIONS ๐
okay bestie, these are the options that apply to all Qtโข applications. every last one. no skipping. ๐ซถ
-style=style /-stylestyle โ sets the application GUI style. what values can you actually use? depends on your system configuration, so it's giving "it depends" energy. but here's the tea: if Qtโข was compiled with extra styles, or if it has extra styles hanging around as plugins, those show up as options for-styletoo. slay.-stylesheet=stylesheet /-stylesheetstylesheet โ sets the application styleSheet. the value must be a path to a file that contains the Style Sheet. that's it, that's the rule โจ-widgetcountโ prints a debug message at the end about how many widgets were left undestroyed, plus the maximum number of widgets that existed at the same time. little forensic moment ๐-reverseโ sets the application's layout direction toQt::RightToLeft. it's a debugging aid, bestie โ do not use this in production, fr fr. the default value is automatically detected from the user's locale (see alsoQLocale::textDirection()).-qmljsdebugger=port โ activates the QML/JS debugger on a port you specify. the value must be in the formatport:1234[,block], whereblockis optional and makes the application wait until a debugger connects to it. so if you need it to sit there and chill until you show up, that's yourblock.-platformplatformName[:options] โ specify the Qtโข Platform Abstraction (QPA) plugin.-platformpluginpathpath โ specify the path to platform plugins.-platformthemeplatformTheme โ specify the platform theme.-pluginplugin โ specify additional plugins to load. the argument may appear multiple times, so stack 'em if you got 'em ๐-qwindowgeometrygeometry โ specify the window geometry for the main window using the X11-syntax. for example:-qwindowgeometry 100x100+50+50-qwindowiconicon โ set the default window icon.-qwindowtitletitle โ set the title of the first window. main character energy for your window bar ๐-sessionsession โ restore the application from an earlier session. time travel but make it Qtโข ๐ฆ-displayhostname:screen_number โ switch displays on X11. this one overrides theDISPLAYenvironment variable, so it's the louder voice in the room.-geometrygeometry โ specify the window geometry for the main window on X11. for example:-geometry 100x100+50+50-dialogs=[xp|none]โ only available for the Windowsยฎ platform.xpuses native style dialogs andnonedisables them.-fontengine=freetypeโ use the FreeType font engine.-h,--helpand-?on Windowsยฎ โ print all options and the application description. your "what does anything do" button ๐-v--versionโ display the version string of the application.
๐ SEE ALSO ๐
kf5options(7) โ go read that one next, bestie, it's the sibling ๐
๐ง AUTHORS ๐ง
this man page was originally written by Lauri Watts <lauri@kde.org>
then updated to Frameworks 5 by Burkhard Lรผck <lueck@hube-lueck.de>
and the infos for this man page come from the QApplication documentation[1], the QGuiApplication documentation[2] and the QCommandLineParser documentation[3].
- Lauri Watts
<lauri@kde.org>โ Author. - Burkhard Lรผck
<lueck@hube-lueck.de>โ Author.
๐ NOTES ๐
- QApplication documentation
https://doc.qt.io/qt-5/qapplication.html#QApplication - QGuiApplication documentation
https://doc.qt.io/qt-5/qguiapplication.html#QGuiApplication - QCommandLineParser documentation
https://doc.qt.io/qt-5/qcommandlineparser.html
and that's the whole page, no cap. written under KDE Frameworks Qt 5.4, dated 2016-06-04, filed as QT5OPTIONS(7). periodt ๐
โจ
๐ฆ where this page comes from
- debian bookworm: kdoctools5 5.103.0-1 ยท MIT
- debian trixie: kdoctools5 5.116.0-1 ยท MIT
- epel 9: kf5-kdoctools 5.116.0-1.el9 ยท BSD-3-Clause AND CC0-1.0 AND GPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND LGPL-3.0-only AND (LGPL-2.1-only OR LGPL-3.0-only)
- fedora 43: kf5-kdoctools 5.116.0-4.fc43 ยท BSD-3-Clause AND CC0-1.0 AND GPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND LGPL-3.0-only AND (LGPL-2.1-only OR LGPL-3.0-only)
- fedora 43: kf5-kdoctools 5.116.0-4.fc43 ยท BSD-3-Clause AND CC0-1.0 AND GPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND LGPL-3.0-only AND (LGPL-2.1-only OR LGPL-3.0-only)
- fedora 44: kf5-kdoctools 5.116.0-5.fc44 ยท BSD-3-Clause AND CC0-1.0 AND GPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND LGPL-3.0-only AND (LGPL-2.1-only OR LGPL-3.0-only)
- fedora 44: kf5-kdoctools 5.116.0-5.fc44 ยท BSD-3-Clause AND CC0-1.0 AND GPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND LGPL-3.0-only AND (LGPL-2.1-only OR LGPL-3.0-only)
- opensuse-leap 16.0: kdoctools 5.116.0-bp160.1.15 ยท LGPL-2.1-or-later AND MIT
- opensuse-leap 16.0: kdoctools 5.116.0-bp160.1.15 ยท LGPL-2.1-or-later AND MIT
- opensuse-leap 16.0: kdoctools 5.116.0-bp160.1.15 ยท LGPL-2.1-or-later AND MIT
- opensuse-leap 16.0: kdoctools 5.116.0-bp160.1.15 ยท LGPL-2.1-or-later AND MIT
- ubuntu jammy: kdoctools5 5.92.0-0ubuntu1 ยท MIT
- ubuntu noble: kdoctools5 5.115.0-0ubuntu5 ยท MIT
- ubuntu resolute: kdoctools5 5.116.0-1ubuntu2 ยท MIT
- ubuntu stonking: kdoctools5 5.116.0-1ubuntu2 ยท MIT
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms