Qt Creator Manual

Using Command Line Options

You can start Qt Creator and specify some options from the command line. For example, you can open a file to any line.

To specify command line options, enter the following command in the Qt Creator installation or build directory:

qtcreator [option] [filename[:line_number]]

Note: You can use either a colon (:) or a plus sign (+) as a separator between the filename and line number. You can also use a space between the separator and the line number.

For example:

  • C:\qtcreator\bin>qtcreator -help
  • C:\qtcreator\bin>qtcreator C:\TextFinder\textfinder.cpp:100
  • C:\qtcreator\bin>qtcreator C:\TextFinder\textfinder.cpp +100

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.
-noload <plugin>Do not load the specified plugin.
-profileOutput plugin start up and shut down profiling data.
-settingspath <path>Override the default path where user settings are stored.
-color <color>Core plugin: override the selected UI color.
-debug <PID-or-corefile>Debugger plugin: attach to process ID or core file.
-wincrashevent <event-handle>Debugger plugin: Attach to crashed processes by using the specified event handle.
-customwizard-verboseProjectExplorer plugin: display additional information when loading custom wizards. For more information about custom wizards, see Adding New Custom Wizards
-lastsessionProjectExplorer plugin: load the last session when Qt Creator starts. Open the projects and files that were open when you last exited Qt Creator. For more information about managing sessions, see Managing Sessions.