2011-09-27 11:53:38 +02:00
|
|
|
/****************************************************************************
|
|
|
|
**
|
2013-01-28 17:12:19 +01:00
|
|
|
** Copyright (c) 2013 Digia Plc and/or its subsidiary(-ies).
|
2012-10-02 09:12:39 +02:00
|
|
|
** Contact: http://www.qt-project.org/legal
|
2011-09-27 11:53:38 +02:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** This file is part of Qt Creator
|
2011-09-27 11:53:38 +02:00
|
|
|
**
|
|
|
|
**
|
|
|
|
** GNU Free Documentation License
|
|
|
|
**
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU Free
|
|
|
|
** Documentation License version 1.3 as published by the Free Software
|
|
|
|
** Foundation and appearing in the file included in the packaging of this
|
|
|
|
** file.
|
|
|
|
**
|
|
|
|
**
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
// **********************************************************************
|
|
|
|
// NOTE: the sections are not ordered by their logical order to avoid
|
|
|
|
// reshuffling the file each time the index order changes (i.e., often).
|
|
|
|
// Run the fixnavi.pl script to adjust the links to the index order.
|
|
|
|
// **********************************************************************
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\contentspage index.html
|
2011-12-13 11:52:47 +01:00
|
|
|
\previouspage creator-project-generic.html
|
2011-09-27 11:53:38 +02:00
|
|
|
\page creator-cli.html
|
|
|
|
\nextpage creator-keyboard-shortcuts.html
|
|
|
|
|
|
|
|
\title Using Command Line Options
|
|
|
|
|
|
|
|
You can start \QC 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 \QC
|
|
|
|
installation or build directory:
|
|
|
|
|
|
|
|
\c {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:
|
|
|
|
|
|
|
|
\list
|
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li \c {C:\qtcreator\bin>qtcreator -help}
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li \c {C:\qtcreator\bin>qtcreator C:\TextFinder\textfinder.cpp:100}
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li \c {C:\qtcreator\bin>qtcreator C:\TextFinder\textfinder.cpp +100}
|
2011-09-27 11:53:38 +02:00
|
|
|
|
|
|
|
\endlist
|
|
|
|
|
2012-09-06 16:58:58 +02:00
|
|
|
To open a project that is located in a particular folder, you can pass on the folder
|
|
|
|
name as a command line argument. \QC looks for a session that matches the folder name and
|
|
|
|
loads it. Or it looks for a project file in the folder and opens it. For example:
|
|
|
|
|
|
|
|
\c {qtcreator .}
|
|
|
|
|
2011-09-27 11:53:38 +02:00
|
|
|
The following table summarizes the available options:
|
|
|
|
|
|
|
|
\table
|
|
|
|
\header
|
2013-02-06 08:50:23 +01:00
|
|
|
\li Option
|
|
|
|
\li Description
|
2011-09-27 11:53:38 +02:00
|
|
|
|
|
|
|
\row
|
2013-02-06 08:50:23 +01:00
|
|
|
\li -help
|
|
|
|
\li Display help on command line options.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
|
|
|
\row
|
2013-02-06 08:50:23 +01:00
|
|
|
\li -version
|
|
|
|
\li Display \QC version.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
|
|
|
\row
|
2013-02-06 08:50:23 +01:00
|
|
|
\li -client
|
|
|
|
\li Attempt to connect to an already running instance of \QC.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2013-02-19 13:10:36 +01:00
|
|
|
\row
|
|
|
|
\li -load <plugin>
|
|
|
|
\li Load the specified plugin.
|
|
|
|
|
2011-09-27 11:53:38 +02:00
|
|
|
\row
|
2013-02-06 08:50:23 +01:00
|
|
|
\li -noload <plugin>
|
|
|
|
\li Do not load the specified plugin.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
|
|
|
\row
|
2013-02-06 08:50:23 +01:00
|
|
|
\li -profile
|
|
|
|
\li Output plugin start up and shut down profiling data.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2013-11-21 17:03:21 +01:00
|
|
|
\row
|
|
|
|
\li -pluginpath <path>
|
|
|
|
\li Add a path where \QC looks for plugins. To specify several
|
|
|
|
paths, add the \c{-pluginpath} option for each path.
|
|
|
|
|
2011-09-27 11:53:38 +02:00
|
|
|
\row
|
2013-02-06 08:50:23 +01:00
|
|
|
\li -settingspath <path>
|
|
|
|
\li Override the default path where user settings are stored.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
|
|
|
\row
|
2013-02-06 08:50:23 +01:00
|
|
|
\li -color <color>
|
|
|
|
\li Core plugin: override the selected UI color.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
|
|
|
\row
|
2013-06-06 14:49:55 +02:00
|
|
|
\li -debug <pid>
|
|
|
|
\li Debugger plugin: attach to the process with the given process ID.
|
|
|
|
|
|
|
|
\row
|
|
|
|
\li -debug <executable>[,kit=<kit>]
|
|
|
|
\li Debugger plugin: launch and debug the executable with the name
|
|
|
|
\c{executable}.
|
|
|
|
A \c{kit} can be specified to point to non-default debuggers
|
|
|
|
and sysroots.
|
|
|
|
|
|
|
|
\row
|
|
|
|
\li -debug [executable,]core=<corefile>[,kit=<kit>]
|
|
|
|
\li Debugger plugin: load the core file named \c{corefile}.
|
|
|
|
The parameter \c{executable} specifies the executable that
|
|
|
|
produced the core file.
|
|
|
|
If this parameter is omitted, \QC 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 \c{executable} parameter is mandatory.
|
|
|
|
A \c{kit} can be specified to point to non-default debuggers
|
|
|
|
and sysroots.
|
|
|
|
|
|
|
|
\row
|
|
|
|
\li -debug <executable>,server=<server:port>[,kit=<kit>]
|
|
|
|
\li Debugger plugin: attach to a debug server running on the port
|
|
|
|
\c{port} on the server \c{server}. The parameter \c{executable}
|
|
|
|
specifies a local copy of the executable the remote debug server is
|
|
|
|
manipulating.
|
|
|
|
A \c{kit} can be specified to point to non-default debuggers
|
|
|
|
and sysroots.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
|
|
|
\row
|
2013-02-06 08:50:23 +01:00
|
|
|
\li -wincrashevent <event-handle>
|
|
|
|
\li Debugger plugin: Attach to crashed processes by using the specified
|
2011-09-27 11:53:38 +02:00
|
|
|
event handle.
|
|
|
|
|
|
|
|
\row
|
2013-02-06 08:50:23 +01:00
|
|
|
\li -customwizard-verbose
|
|
|
|
\li ProjectExplorer plugin: display additional information when loading
|
2011-09-27 11:53:38 +02:00
|
|
|
custom wizards. For more information about custom wizards, see
|
|
|
|
\l{Adding New Custom Wizards}
|
|
|
|
|
|
|
|
\row
|
2013-02-06 08:50:23 +01:00
|
|
|
\li -lastsession
|
|
|
|
\li ProjectExplorer plugin: load the last session when \QC starts.
|
2011-09-27 11:53:38 +02:00
|
|
|
Open the projects and files that were open when you last exited \QC.
|
|
|
|
For more information about managing sessions, see \l{Managing Sessions}.
|
|
|
|
|
2013-06-05 10:18:00 +02:00
|
|
|
\row
|
|
|
|
\li -block
|
|
|
|
\li Open files in editors in a running \QC instance and block the
|
|
|
|
command line until the first editor is closed.
|
2011-09-27 11:53:38 +02:00
|
|
|
\endtable
|
|
|
|
|
2013-06-04 15:44:37 +02:00
|
|
|
\section1 Using Custom Styles
|
|
|
|
|
2013-11-25 17:37:19 +01:00
|
|
|
\QC is a \l{QApplication}
|
2013-06-04 15:44:37 +02:00
|
|
|
{Qt application}, and therefore, it accepts the command line options
|
|
|
|
that all Qt applications accept. For example, you can use the \c {-style} and
|
|
|
|
\c {-stylesheet} options to apply custom styles and
|
2013-11-25 17:37:19 +01:00
|
|
|
\l{QApplication#stylesheet}{stylesheets}.
|
2013-06-04 15:44:37 +02:00
|
|
|
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 \l{Specifying Text Editor Settings}{text editor color scheme} and the
|
|
|
|
styling of the integrated \QD.
|
|
|
|
|
2011-09-27 11:53:38 +02:00
|
|
|
*/
|