Command-Line Options

To specify command-line options, enter the following command in the directory that contains the Qt Creator executable or specify the path to Qt Creator as a part of the command:

qtcreator [option] [filename[:line_number[:column_number]]]

The following table summarizes the available options:

OptionDescription
-helpDisplay help on command-line options.
-versionDisplay Qt Creator version.
-clientAttempt to connect to an already running instance of Qt Creator.
-pidAttempt to connect to an already running instance of Qt Creator with the specified process ID.
-blockOpen files in editors in a running Qt Creator instance and block the command line until the first editor is closed.
-no-crashcheckDisable the startup check for a previously crashed Qt Creator instance.
-load <plugin-id>Enable the specified plugin and all plugins that it depends on. You can combine -load and -noload options and specify both options multiple times to enable and disable several plugins. The actions are executed in the specified order.
-load allEnable all plugins.
-noload <plugin-id>Disable the specified plugin and all plugins that depend on it.
-noload allDisable all plugins.
-profileOutput profiling data about plugin startup and shutdown.
-pluginpath <path>Add a path where Qt Creator looks for plugins. To specify several paths, add the -pluginpath option for each path.
-settingspath <path>Override the default path where user settings are stored.
-installsettingspath <path>Override the default path from where user-independent settings are read (for example, those written by the installer).
-temporarycleansettings, -tcsUse clean settings for debug or testing reasons. The settings will be deleted when Qt Creator exits.
-language <locale>Set the UI language.

Use a lowercase, two-letter ISO 639 language code, such as de, en, or fr.

-test <plugin>[,testfunction[:testdata]] ...For Qt Creator plugin developers: run the plugin's tests using a separate settings path by default.
-test allFor Qt Creator plugin developers: run tests from all plugins.
-notest <plugin>For Qt Creator plugin developers: exclude all of the plugin's tests from the test run.
-scenario <scenarioname>For Qt Creator plugin developers: run the specified scenario.
-color <color>Core plugin: override the selected UI color.
-presentationModeCore plugin: display keyboard shortcuts as popups when you press them. Mostly useful when presenting Qt Creator to someone else.
-theme <default | dark>Core plugin: apply a dark color theme to Qt Creator, without using stylesheets.
-notourWelcome plugin: skip the UI tour on startup.
-debug <pid>Debugger plugin: attach to the process with the given process ID.
-debug <executable>[,kit=<kit>]Debugger plugin: launch and debug the executable with the name executable. A kit can be specified by ID or name to point to non-default debuggers and sysroots.
-debug [executable,]core=<corefile>[,kit=<kit>]Debugger plugin: load the core file named corefile. The parameter executable specifies the executable that produced the core file. If this parameter is omitted, Qt Creator will attempt to reconstruct it from the core file itself. This will fail for paths with more than about 80 characters. In such cases the executable parameter is mandatory. A kit can be specified by ID or name to point to non-default debuggers and sysroots.
-debug <executable>,server=<server:port>[,kit=<kit>]Debugger plugin: attach to a debug server running on the port port on the server server. The parameter executable specifies a local copy of the executable the remote debug server is manipulating. A kit can be specified by ID or name to point to non-default debuggers and sysroots.
-wincrashevent <event-handle:pid>Debugger plugin: attach to crashed processes by using the specified event handle and process ID.
-git-show <git commit hash>Git plugin: show the specified commit hash.
-customwizard-verboseProjectExplorer plugin: display additional information when loading custom wizards. For more information about custom wizards, see Custom Wizards
-ensure-kit-for-binary <path to binary>ProjectExplorer plugin: create a kit with a toolchain corresponding to the given binary's architecture.
-lastsessionProjectExplorer plugin: load the last session when Qt Creator starts. Open the projects and files that were open when you last exited Qt Creator.
<session>ProjectExplorer plugin: load the given session when Qt Creator starts. Open the projects and files that were open when you last exited Qt Creator.

Using Custom Styles

Qt Creator is a Qt application, and therefore, it accepts the command-line options that all Qt applications accept. For example, you can use the -style and -stylesheet options to apply custom styles and stylesheets. The styling is only applied during the current session.

Exercise caution when applying styles, as overriding the existing styling may make some items difficult to see. Also, setting a stylesheet may affect the text editor color scheme and the styling of the integrated Qt Widgets Designer.

You can also switch to a dark theme to customize the appearance of widgets, colors, and icons without using stylesheets.

See also Run Qt Creator from the command line and Manage sessions.

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.