Skip to content

Instantly share code, notes, and snippets.

@pcolby
Last active March 30, 2025 01:23
Show Gist options
  • Save pcolby/109550575dbd3dedbd4e1c3568929acd to your computer and use it in GitHub Desktop.
Save pcolby/109550575dbd3dedbd4e1c3568929acd to your computer and use it in GitHub Desktop.

Options built-in, by default, to most Qt-based applications.

QApplication

https://doc.qt.io/qt-5/qapplication.html#QApplication https://github.com/qt/qtbase/blob/dev/src/widgets/kernel/qapplication.cpp#L449

-qdevel (obsolete)
--qmljsdebugger <port>
--reverse (not acrually implemented in QApplication)
--style <style>
--stylesheet <file>
--widgetcount

QGuiApplication

https://doc.qt.io/qt-5/qguiapplication.html#supported-command-line-options

--platform name[:options]
--platformpluginpath
--platformtheme
--plugin
--qmljsdebugger
--qwindowgeometry
--qwindowicon
--qwindowtitle
--reverse
--session
--display
--geometry
@AlbertoMarnetto
Copy link

Thanks for this document and the links, I wrote a blog post showing some of the options and this reference was very useful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment