QT5OPTIONS(7)

๐Ÿ“ฆ
version 5.116.0 ยท 2 versions
  • 5.116.0 ยท debian bookworm, debian trixie, epel 9, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 5.116.0 ยท alpine 3.24
, in debian bookworm, debian trixie, epel 9, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu resolute, ubuntu stonking

โœจ 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 / -style style โ€” 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 -style too. slay.
  • -stylesheet= stylesheet / -stylesheet stylesheet โ€” 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 to Qt::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 also QLocale::textDirection()).
  • -qmljsdebugger= port โ€” activates the QML/JS debugger on a port you specify. the value must be in the format port:1234[,block], where block is 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 your block.
  • -platform platformName[:options] โ€” specify the Qtโ„ข Platform Abstraction (QPA) plugin.
  • -platformpluginpath path โ€” specify the path to platform plugins.
  • -platformtheme platformTheme โ€” specify the platform theme.
  • -plugin plugin โ€” specify additional plugins to load. the argument may appear multiple times, so stack 'em if you got 'em ๐Ÿ“
  • -qwindowgeometry geometry โ€” specify the window geometry for the main window using the X11-syntax. for example: -qwindowgeometry 100x100+50+50
  • -qwindowicon icon โ€” set the default window icon.
  • -qwindowtitle title โ€” set the title of the first window. main character energy for your window bar ๐Ÿ‘‘
  • -session session โ€” restore the application from an earlier session. time travel but make it Qtโ„ข ๐Ÿฆ‹
  • -display hostname:screen_number โ€” switch displays on X11. this one overrides the DISPLAY environment variable, so it's the louder voice in the room.
  • -geometry geometry โ€” 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. xp uses native style dialogs and none disables them.
  • -fontengine= freetype โ€” use the FreeType font engine.
  • -h, --help and -? 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 ๐Ÿ“

  1. QApplication documentation https://doc.qt.io/qt-5/qapplication.html#QApplication
  2. QGuiApplication documentation https://doc.qt.io/qt-5/qguiapplication.html#QGuiApplication
  3. 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