QT6OPTIONS(7)

๐Ÿ“ฆ
version 6.31.0 ยท 2 versions
  • 6.31.0 ยท arch rolling, debian trixie, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 6.26.0 ยท alpine 3.24
, in arch rolling, debian trixie, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

๐Ÿ’– QT6OPTIONS(7) ๐Ÿ’–

okay so bestie, welcome to qt6options โ€” the manual page for all the common command line options that literally every single app built on the Qt(TM) toolkit shares. this one lives in the Qt Command Line Documentation section of the manual, and it's your cheat sheet for the flags that work everywhere. no cap. ๐Ÿฆ‹


๐ŸŒธ NAME ๐ŸŒธ

qt6options โ€” Common commandline options for all applications based on the Qt(TM) toolkit


โœจ 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 ๐Ÿ’…

so these are the ones that apply to all Qt(TM) applications โ€” universal queen behaviour ๐Ÿ‘‘

  • -style= style / -style style โ€” sets the application's GUI style. what values you can actually use depends on your system configuration, bestie. and if Qt(TM) was compiled with extra styles, or has extra styles chilling as plugins, those show up as options for -style too. โœจ
  • -stylesheet= stylesheet / -stylesheet stylesheet โ€” sets the application styleSheet. the value has to be a path to a file that contains the Style Sheet. that's the vibe, no shortcuts. ๐ŸŽ€
  • -widgetcount โ€” prints a debug message at the end telling you how many widgets were left undestroyed, plus the maximum number of widgets that existed at the same time. lowkey a peek behind the curtain ๐Ÿซฃ
  • -reverse โ€” sets the application's layout direction to Qt::RightToLeft. > โš ๏ธ heads up bestie: this option is intended to aid debugging and should not be used in production. the default value is automatically detected from the user's locale (see also QLocale::textDirection()).
  • -qmljsdebugger= port โ€” activates the QML/JS debugger on a specified port. the value must be of format port:1234[,block], where block is optional and will make the application wait until a debugger connects to it. patient queen ๐Ÿ’œ
  • -platform platformName[:options] โ€” specifies the Qt(TM) Platform Abstraction (QPA) plugin.
  • -platformpluginpath path โ€” specifies the path to platform plugins.
  • -platformtheme platformTheme โ€” specifies the platform theme.
  • -plugin plugin โ€” specifies additional plugins to load. the argument may appear multiple times, so go off ๐ŸŽ‰
  • -qwindowgeometry geometry โ€” specifies the window geometry for the main window using the X11-syntax. for example: -qwindowgeometry 100x100+50+50
  • -qwindowicon icon โ€” sets the default window icon.
  • -qwindowtitle title โ€” sets the title of the first window.
  • -session session โ€” restores the application from an earlier session. time travel era โญ
  • -display hostname:screen_number โ€” switches displays on X11. this overrides the DISPLAY environment variable.
  • -geometry geometry โ€” specifies 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 โ€” uses the FreeType font engine.
  • -h, --help and -? on Windowsยฎ โ€” prints all options and the application description. the "help me pls" flag ๐Ÿ™ˆ
  • -v --version โ€” displays the version string of the application.

๐Ÿงš SEE ALSO ๐Ÿงš


๐Ÿ‘‘ AUTHORS ๐Ÿ‘‘

the man page was originally written by Lauri Watts <lauri@kde.org> ๐Ÿ’–

updated to Frameworks 5 by Burkhard Lรผck <lueck@hube-lueck.de> ๐ŸŒˆ

and the infos for this man page are from QApplication documentation[1], QGuiApplication documentation[2] and QCommandLineParser documentation[3]. iykyk ๐ŸŽ€


๐Ÿ‘‘ AUTHORS ๐Ÿ‘‘

  • Lauri Watts <lauri@kde.org>
    • Author.
  • Burkhard Lรผck <lueck@hube-lueck.de>
    • Author.

๐ŸŒŸ NOTES ๐ŸŒŸ

  1. QApplication documentation https://doc.qt.io/qt-6/qapplication.html#QApplication
  2. QGuiApplication documentation https://doc.qt.io/qt-6/qguiapplication.html#QGuiApplication
  3. QCommandLineParser documentation https://doc.qt.io/qt-6/qcommandlineparser.html

and that's the whole page, bestie!! ๐Ÿ’– this one's brought to you by KDE Frameworks Qt 6, dated 2016-06-04, and it's page QT6OPTIONS(7) of the manual โ€” slay, periodt. ๐ŸŽ€โœจ๐Ÿฆ‹

๐Ÿ“ฆ where this page comes from