2011-09-27 11:53:38 +02:00
|
|
|
/****************************************************************************
|
|
|
|
|
**
|
2016-01-15 14:51:16 +01:00
|
|
|
** Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
2011-09-27 11:53:38 +02:00
|
|
|
**
|
2016-01-15 14:51:16 +01:00
|
|
|
** This file is part of the Qt Creator documentation.
|
2011-09-27 11:53:38 +02:00
|
|
|
**
|
2016-01-15 14:51:16 +01:00
|
|
|
** Commercial License Usage
|
|
|
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
|
|
|
** accordance with the commercial license agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
|
|
|
|
** a written agreement between you and The Qt Company. For licensing terms
|
|
|
|
|
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
|
|
|
** information use the contact form at https://www.qt.io/contact-us.
|
2011-09-27 11:53:38 +02:00
|
|
|
**
|
2016-01-15 14:51:16 +01:00
|
|
|
** GNU Free Documentation License Usage
|
2011-09-27 11:53:38 +02:00
|
|
|
** Alternatively, this file may be used under the terms of the GNU Free
|
|
|
|
|
** Documentation License version 1.3 as published by the Free Software
|
2016-01-15 14:51:16 +01:00
|
|
|
** Foundation and appearing in the file included in the packaging of
|
|
|
|
|
** this file. Please review the following information to ensure
|
|
|
|
|
** the GNU Free Documentation License version 1.3 requirements
|
|
|
|
|
** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
|
2011-09-27 11:53:38 +02:00
|
|
|
**
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
|
|
// **********************************************************************
|
|
|
|
|
// 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.
|
|
|
|
|
// **********************************************************************
|
|
|
|
|
|
|
|
|
|
/*!
|
2014-03-17 12:18:12 +01:00
|
|
|
\contentspage {Qt Creator Manual}
|
2011-09-27 11:53:38 +02:00
|
|
|
\previouspage creator-overview.html
|
|
|
|
|
\page creator-quick-tour.html
|
2013-04-19 15:36:38 +02:00
|
|
|
\nextpage creator-configuring.html
|
2011-09-27 11:53:38 +02:00
|
|
|
|
|
|
|
|
\title User Interface
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
When you start \QC, it opens to the \uicontrol Welcome mode, where you can:
|
2011-09-27 11:53:38 +02:00
|
|
|
|
|
|
|
|
\list
|
|
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li Open recent sessions and projects
|
2012-02-17 16:25:43 +01:00
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li Create and open projects
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li Open tutorials and example projects
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li Read news from the online community and Qt labs
|
2011-09-27 11:53:38 +02:00
|
|
|
|
|
|
|
|
\endlist
|
|
|
|
|
|
2012-02-17 16:25:43 +01:00
|
|
|
\image qtcreator-breakdown.png
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2012-02-17 16:25:43 +01:00
|
|
|
You can use the mode selector (1) to change to another \QC mode.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2012-09-03 17:50:37 +02:00
|
|
|
You can use the kit selector (2) to select the
|
|
|
|
|
\l{glossary-buildandrun-kit}{kit} for running (3), debugging (4), or
|
2012-02-17 16:25:43 +01:00
|
|
|
building (5) the application. Output from these actions is displayed in the
|
|
|
|
|
output panes (7).
|
|
|
|
|
|
|
|
|
|
You can use the locator (6) to to browse through projects, files, classes,
|
2013-10-07 13:34:40 +02:00
|
|
|
functions, documentation, and file systems.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
|
|
|
|
\section1 Modes
|
|
|
|
|
|
|
|
|
|
The mode selector allows you to quickly switch between tasks such as editing
|
|
|
|
|
project and source files, designing application UIs, configuring how
|
|
|
|
|
projects are built and executed, and debugging your applications. To change
|
|
|
|
|
modes, click the icons, or use the \l{keyboard-shortcuts}
|
|
|
|
|
{corresponding keyboard shortcut}.
|
|
|
|
|
|
2013-05-30 17:02:15 +02:00
|
|
|
To hide the mode selector and to save space on the display, select
|
2014-12-11 15:43:19 +01:00
|
|
|
\uicontrol Window > \uicontrol {Show Mode Selector}.
|
2013-05-30 17:02:15 +02:00
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
The following image displays an example application in \uicontrol Edit mode (1)
|
|
|
|
|
and \uicontrol Design mode (2).
|
2012-02-17 16:25:43 +01:00
|
|
|
|
|
|
|
|
\image qtcreator-qt-quick-editors.png "Edit mode and Design mode"
|
|
|
|
|
|
2011-09-27 11:53:38 +02:00
|
|
|
You can use \QC in the following modes:
|
|
|
|
|
|
|
|
|
|
\list
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol Welcome mode for opening projects.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol{\l{Coding}{Edit}} mode for editing project and source
|
2011-09-27 11:53:38 +02:00
|
|
|
files.
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol{\l{Designing User Interfaces}{Design}} mode for designing and
|
2011-09-27 11:53:38 +02:00
|
|
|
developing application user interfaces. This mode is available for
|
|
|
|
|
UI files.
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol{\l{Debugging}{Debug}} mode for inspecting the state of your
|
2016-03-22 13:09:00 +01:00
|
|
|
application while debugging and for using code analysis tools
|
|
|
|
|
to detect memory leaks and profile C++ or QML code.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol{\l{Specifying Build Settings}{Projects}} mode for configuring
|
2011-09-27 11:53:38 +02:00
|
|
|
project building and execution. This mode is available when a
|
|
|
|
|
project is open.
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol{\l{Getting Help}{Help}} mode for viewing Qt documentation.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
|
|
|
|
\endlist
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
Certain actions in \QC trigger a mode change. Clicking on \uicontrol {Debug} >
|
|
|
|
|
\uicontrol {Start Debugging} > \uicontrol {Start Debugging} automatically switches to
|
|
|
|
|
\uicontrol {Debug} mode.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
|
|
|
|
\section1 Browsing Project Contents
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
The sidebar is available in the \uicontrol Edit and \uicontrol Debug modes, and with a
|
|
|
|
|
different set of views in the \uicontrol Design mode. Use the
|
2011-09-27 11:53:38 +02:00
|
|
|
sidebar to browse projects, files, and bookmarks, and to view the class
|
|
|
|
|
hierarchy.
|
|
|
|
|
|
|
|
|
|
\image qtcreator-sidebar.png
|
|
|
|
|
|
2012-02-17 16:25:43 +01:00
|
|
|
You can select the content of the sidebar in the sidebar menu (1):
|
2011-09-27 11:53:38 +02:00
|
|
|
|
|
|
|
|
\list
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol Projects shows a list of projects open in the current
|
2011-09-27 11:53:38 +02:00
|
|
|
session.
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol{Open Documents} shows currently open files.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol Bookmarks shows all bookmarks for the current session.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol{File System} shows all files in the currently selected
|
2011-09-27 11:53:38 +02:00
|
|
|
directory.
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol {Class View} shows the class hierarchy of the currently
|
2011-09-27 11:53:38 +02:00
|
|
|
open projects.
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol Outline shows the symbol hierarchy of a C++ file and the type
|
2011-09-27 11:53:38 +02:00
|
|
|
hierarchy of a QML file.
|
|
|
|
|
|
2016-01-25 11:08:08 +01:00
|
|
|
\li \uicontrol Tests lists autotests and Qt Quick tests in the project.
|
2015-04-08 10:03:43 +02:00
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol {Type Hierarchy} shows the base classes of a class.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol {Include Hierarchy} shows which files are included in the current file
|
2013-08-13 22:58:38 +02:00
|
|
|
and which files include the current file.
|
|
|
|
|
|
2011-09-27 11:53:38 +02:00
|
|
|
\endlist
|
|
|
|
|
|
2014-12-04 11:56:03 +01:00
|
|
|
For more information about the sidebar views that are only available in
|
|
|
|
|
\QMLD, see \l{Using Qt Quick Designer}.
|
|
|
|
|
|
2011-09-27 11:53:38 +02:00
|
|
|
You can change the view of the sidebar in the following ways:
|
|
|
|
|
|
|
|
|
|
\list
|
|
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li To toggle the sidebar, click \inlineimage qtcreator-togglebutton.png
|
2014-12-11 15:43:19 +01:00
|
|
|
(\uicontrol {Hide Sidebar/Show Sidebar}) or press \key Alt+0
|
2014-05-02 12:44:45 +02:00
|
|
|
(\key Cmd+0 on OS X).
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li To split the sidebar, click \inlineimage qtcreator-splitbar.png
|
2014-12-11 15:43:19 +01:00
|
|
|
(\uicontrol {Split}). Select new content to view in the split view.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li To close a sidebar view, click
|
2015-04-08 10:03:43 +02:00
|
|
|
\inlineimage qtcreator-remove-split-button.png
|
2014-12-11 15:43:19 +01:00
|
|
|
(\uicontrol {Close}).
|
2011-09-27 11:53:38 +02:00
|
|
|
|
|
|
|
|
\endlist
|
|
|
|
|
|
|
|
|
|
The additional options in each view are described in the following
|
|
|
|
|
sections.
|
|
|
|
|
|
2015-04-09 15:05:43 +02:00
|
|
|
In some views, right-clicking opens a context menu that contains functions
|
|
|
|
|
for managing the objects listed in the view.
|
|
|
|
|
|
2011-09-27 11:53:38 +02:00
|
|
|
\section2 Viewing Project Files
|
|
|
|
|
|
|
|
|
|
The sidebar displays projects in a project tree. The project tree contains
|
|
|
|
|
a list of all projects open in the current session. The files for each
|
|
|
|
|
project are grouped according to their file type.
|
|
|
|
|
|
2013-04-05 14:09:31 +02:00
|
|
|
If the project is under version control, information from the version control system
|
|
|
|
|
might be displayed in brackets after the project name. This is currently implemented for
|
|
|
|
|
Git (the branch name or a tag is displayed) and ClearCase (the view name is displayed).
|
2011-12-30 16:07:04 +01:00
|
|
|
|
2011-09-27 11:53:38 +02:00
|
|
|
You can use the project tree in the following ways:
|
|
|
|
|
|
|
|
|
|
\list
|
|
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li To open files that belong to a project, double-click them in the
|
2011-12-30 16:07:04 +01:00
|
|
|
project tree. Files open in the appropriate editor, according to the
|
|
|
|
|
file type. For example, code source files open in the code editor
|
|
|
|
|
and image files in the \l{Viewing Images}{image viewer}.
|
|
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li To bring up a context menu containing the actions most commonly
|
2011-09-27 11:53:38 +02:00
|
|
|
needed right-click an item in the project tree. For example, through
|
|
|
|
|
the menu of the project root directory you can, among other actions,
|
|
|
|
|
build, re-build, clean and run the project.
|
|
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li To hide the categories and sort project files alphabetically, click
|
2011-09-27 11:53:38 +02:00
|
|
|
\inlineimage qtcreator-filter.png
|
2014-12-11 15:43:19 +01:00
|
|
|
(\uicontrol {Filter Tree}) and select \uicontrol{Simplify Tree}.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li To hide source files which are automatically generated by the build
|
2014-12-11 15:43:19 +01:00
|
|
|
system, select \uicontrol {Filter Tree > Hide Generated Files}.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li To keep the position in the project tree synchronized with the file
|
2011-09-27 11:53:38 +02:00
|
|
|
currently opened in the editor, click
|
|
|
|
|
\inlineimage qtcreator-synchronizefocus.png
|
2014-12-11 15:43:19 +01:00
|
|
|
(\uicontrol {Synchronize with Editor}).
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li To see the absolute path of a file, move the mouse pointer over the
|
2011-09-27 11:53:38 +02:00
|
|
|
file name.
|
|
|
|
|
|
|
|
|
|
\endlist
|
|
|
|
|
|
2014-08-06 15:07:33 +02:00
|
|
|
Files that are not sources or data can be still included into a project's
|
|
|
|
|
distribution tarball by adding their paths to the \c DISTFILES variable in
|
|
|
|
|
the .pro file. This way they also become known to \QC, so that they are
|
2014-12-11 15:43:19 +01:00
|
|
|
visible in the \uicontrol Projects view and are known to the locator and search.
|
2014-06-12 15:42:42 +02:00
|
|
|
|
2015-04-09 15:05:43 +02:00
|
|
|
The \uicontrol Projects view contains context menus for managing projects,
|
|
|
|
|
subprojects, folders, and files. The following functions are available for
|
|
|
|
|
managing projects and subprojects:
|
|
|
|
|
|
|
|
|
|
\list
|
|
|
|
|
|
|
|
|
|
\li Set a project as the active project.
|
|
|
|
|
|
|
|
|
|
\li Execute the \uicontrol Build menu commands.
|
|
|
|
|
|
|
|
|
|
\li Add subprojects, libraries, directories, and files.
|
|
|
|
|
|
|
|
|
|
\li Remove subprojects.
|
|
|
|
|
|
|
|
|
|
\li Search from the selected directory.
|
|
|
|
|
|
|
|
|
|
\li Close projects.
|
|
|
|
|
|
|
|
|
|
\endlist
|
|
|
|
|
|
|
|
|
|
For managing files and directories, the same functions are available as in
|
|
|
|
|
the \uicontrol {File System} view. In addition, you can remove and rename
|
|
|
|
|
files.
|
|
|
|
|
|
2011-09-27 11:53:38 +02:00
|
|
|
\section2 Viewing the File System
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
If you cannot see a file in the \uicontrol Projects view, switch to the
|
|
|
|
|
\uicontrol {File System} view, which shows all the files in the file system.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
To also show hidden files, select \uicontrol {Filter Files} > \uicontrol {Show Hidden Files}.
|
2013-02-06 13:39:39 +01:00
|
|
|
|
2011-09-27 11:53:38 +02:00
|
|
|
To keep the position in the tree synchronized with the file
|
2014-12-11 15:43:19 +01:00
|
|
|
opened in the editor, select \uicontrol {Synchronize with Editor}.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2015-04-09 15:05:43 +02:00
|
|
|
Use the context menu functions to:
|
|
|
|
|
|
|
|
|
|
\list
|
|
|
|
|
|
|
|
|
|
\li Open files with the default editor or some other editor.
|
|
|
|
|
|
|
|
|
|
\li Show the file or directory in the file explorer.
|
|
|
|
|
|
|
|
|
|
\li Open a terminal window in the selected directory or in the directory
|
|
|
|
|
that contains the file.
|
|
|
|
|
|
|
|
|
|
\li Search from the selected directory.
|
|
|
|
|
|
|
|
|
|
\endlist
|
|
|
|
|
|
2011-09-27 11:53:38 +02:00
|
|
|
\section2 Viewing the Class Hierarchy
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
The \uicontrol {Class View} shows the class hierarchy of the currently
|
2011-09-27 11:53:38 +02:00
|
|
|
open projects. To organize the view by subprojects, click
|
|
|
|
|
\inlineimage qtcreator-show-subprojects.png
|
2014-12-11 15:43:19 +01:00
|
|
|
(\uicontrol {Show Subprojects}).
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2014-10-21 10:32:34 +02:00
|
|
|
To visit all parts of a namespace, double-click on the namespace item
|
|
|
|
|
multiple times.
|
|
|
|
|
|
2013-03-13 11:39:36 +01:00
|
|
|
\section2 Viewing QML Types
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
The \uicontrol Outline view shows the type hierarchy in a QML file.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
|
|
|
|
\list
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li To see a complete list of all bindings, select \uicontrol {Filter Tree >
|
2012-02-17 16:25:43 +01:00
|
|
|
Show All Bindings}.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2013-03-13 11:39:36 +01:00
|
|
|
\li To keep the position in the view synchronized with the QML type
|
2014-12-11 15:43:19 +01:00
|
|
|
selected in the editor, select \uicontrol {Synchronize with Editor}.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
|
|
|
|
\endlist
|
|
|
|
|
|
2015-04-08 10:03:43 +02:00
|
|
|
\section2 Viewing Tests
|
|
|
|
|
|
|
|
|
|
The \uicontrol Tests view shows the autotests and Qt Quick tests in the
|
2016-01-25 11:08:08 +01:00
|
|
|
current project. Select the test cases to run. If a Qt
|
2015-04-08 10:03:43 +02:00
|
|
|
Quick test case does not have a name, it is marked \uicontrol Unnamed in the
|
|
|
|
|
list. Unnamed test cases are always executed when the application that
|
|
|
|
|
contains them is run, and therefore you cannot select or deselect them.
|
|
|
|
|
|
|
|
|
|
To show or hide init and cleanup or data functions, select
|
|
|
|
|
\uicontrol {Filter Test Tree} > \uicontrol {Show Init and Cleanup Functions}
|
|
|
|
|
or \uicontrol {Show Data Functions}. Double-click a function in the list
|
|
|
|
|
to open its source code in the code editor.
|
|
|
|
|
|
|
|
|
|
The test cases are listed in alphabetic order. To list them in the order in
|
|
|
|
|
which they are defined in the source code, select
|
|
|
|
|
\inlineimage qtcreator-autotests-sort-naturally.png
|
|
|
|
|
(\uicontrol {Sort Naturally}).
|
|
|
|
|
|
|
|
|
|
To run tests, select \uicontrol {Run All Tests} or
|
|
|
|
|
\uicontrol {Run Selected Tests} in the context menu.
|
|
|
|
|
|
|
|
|
|
To refresh the view, select \uicontrol {Rescan Tests} in the context menu.
|
|
|
|
|
|
2011-09-27 11:53:38 +02:00
|
|
|
\section2 Viewing Type Hierarchy
|
|
|
|
|
|
|
|
|
|
To view the base classes of a class, right-click the class and select
|
2014-12-11 15:43:19 +01:00
|
|
|
\uicontrol {Open Type Hierarchy} or press \key {Ctrl+Shift+T}.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2013-08-13 22:58:38 +02:00
|
|
|
\section2 Viewing Include Hierarchy
|
|
|
|
|
|
|
|
|
|
To view which files are included in the current file and which files include
|
2014-12-11 15:43:19 +01:00
|
|
|
the current file, right-click in the editor and select \uicontrol {Open Include Hierarchy}
|
2013-08-13 22:58:38 +02:00
|
|
|
or press \key {Ctrl+Shift+I}.
|
|
|
|
|
|
2011-09-27 11:53:38 +02:00
|
|
|
\section1 Viewing Output
|
|
|
|
|
|
|
|
|
|
The task pane in \QC can display one of the following panes:
|
|
|
|
|
|
|
|
|
|
\list
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol{Issues}
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol{Search Results}
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol{Application Output}
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol{Compile Output}
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2015-11-10 16:59:02 +01:00
|
|
|
\li \uicontrol {Debugger Console}
|
2013-03-05 10:02:14 +01:00
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol {To-Do Entries}
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol{Version Control}
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol{General Messages}
|
2012-06-20 13:13:32 +02:00
|
|
|
|
2016-01-25 11:08:08 +01:00
|
|
|
\li \uicontrol{Test Results}
|
2015-04-08 10:03:43 +02:00
|
|
|
|
2011-09-27 11:53:38 +02:00
|
|
|
\endlist
|
|
|
|
|
|
|
|
|
|
Output panes are available in all \l{Modes}{modes}. Click the name of an
|
|
|
|
|
output pane to open the pane. To maximize an open output pane, click the
|
2014-12-11 15:43:19 +01:00
|
|
|
\uicontrol {Maximize Output Pane} button or press \key {Alt+9}.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
To search within the \uicontrol{Application Output} and \uicontrol{Compile Output}
|
2011-09-27 11:53:38 +02:00
|
|
|
panes, press \key {Ctrl+F} when the pane is active. Enter search criteria in
|
2014-12-11 15:43:19 +01:00
|
|
|
the \uicontrol Find field and click the left and right arrows to search down and
|
2015-11-04 12:02:32 +01:00
|
|
|
up in the pane. In these panes, you can also use the zoom buttons to increase and
|
|
|
|
|
decrease the text size of the output.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
To open the \uicontrol{General Messages} and \l{Using Version Control Systems}
|
2012-02-17 16:25:43 +01:00
|
|
|
{Version Control} panes, select
|
2014-12-11 15:43:19 +01:00
|
|
|
\uicontrol {Window > Output Panes}. To display the \uicontrol {To-Do Entries} pane,
|
2015-04-08 10:03:43 +02:00
|
|
|
enable the Todo plugin and to display the \l{Running Autotests}
|
|
|
|
|
{Test Results} pane, enable the Auto Tests plugin.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2011-10-14 12:29:53 +02:00
|
|
|
\section2 Issues
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
The \uicontrol{Issues} pane provides lists of following types of issues:
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2011-10-14 12:29:53 +02:00
|
|
|
\list
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol {Build System} - Errors and warnings encountered during a
|
2011-10-14 12:29:53 +02:00
|
|
|
build.
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol Compile - Selected output from the compiler. Open the
|
|
|
|
|
\uicontrol {Compile Output} pane for more detailed information.
|
2011-10-14 12:29:53 +02:00
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol{Debug Information} - Lists debug information packages that might
|
2013-10-22 13:55:47 +02:00
|
|
|
be missing.
|
|
|
|
|
|
2016-03-22 13:09:00 +01:00
|
|
|
\li \uicontrol Debugger - Errors encountered while running the
|
|
|
|
|
\l{Analyzing Code}{Valgrind code analysis tools}.
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol{Debugger Runtime} - Errors encountered when starting \QC. For
|
2013-10-22 13:55:47 +02:00
|
|
|
example, information about missing DLLs.
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol Deployment - Errors encountered between building an application
|
2013-10-22 13:55:47 +02:00
|
|
|
successfully and starting it on a device.
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol {My Tasks} - Entries from a task list file (.tasks) generated
|
2011-10-14 12:29:53 +02:00
|
|
|
by \l{Showing Task List Files in Issues Pane}
|
|
|
|
|
{code scanning and analysis tools}.
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol QML - Errors in QML syntax.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol {QML Analysis} - Results of the JavaScript
|
2011-12-13 17:21:17 +01:00
|
|
|
\l{Checking JavaScript and QML Syntax}
|
|
|
|
|
{code syntax and validation checks}
|
2011-10-14 12:29:53 +02:00
|
|
|
|
|
|
|
|
\endlist
|
|
|
|
|
|
|
|
|
|
The pane filters out irrelevant output from the build tools and presents the
|
|
|
|
|
issues in an organized way. To further filter the output by type, select
|
2014-12-11 15:43:19 +01:00
|
|
|
\uicontrol {Filter Tree}
|
2011-10-14 12:29:53 +02:00
|
|
|
and then select a filter.
|
|
|
|
|
|
|
|
|
|
\image qtcreator-build-issues.png
|
|
|
|
|
|
2014-06-16 14:10:02 +02:00
|
|
|
Right-clicking on a line brings up a context menu with actions that you can
|
|
|
|
|
apply to the contents of the line. You can remove a line, copy its contents
|
|
|
|
|
to the clipboard, or search the Internet for a solution using the contents
|
|
|
|
|
of the line as search criteria. In addition, you can show a version control
|
|
|
|
|
annotation view of the line that causes the error message.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2013-03-05 14:30:18 +01:00
|
|
|
To navigate to the corresponding source code, click an issue or
|
2014-12-11 15:43:19 +01:00
|
|
|
select \uicontrol {Show in Editor} in the context menu. The entry must contain the
|
2013-03-05 14:30:18 +01:00
|
|
|
name of the file where the issue was found.
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
To view more information about an issue in the \uicontrol {Compile Output} pane,
|
|
|
|
|
select \uicontrol {Show Output} in the context menu.
|
2014-06-16 14:10:02 +02:00
|
|
|
|
2011-10-14 12:29:53 +02:00
|
|
|
To jump from one issue to the next or previous one, press \key F6 and
|
|
|
|
|
\key Shift+F6.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
|
|
|
|
\section2 Search Results
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
In the \uicontrol{Search Results} pane, you can search through projects, files on
|
2012-02-17 16:25:43 +01:00
|
|
|
a file system or the currently open file:
|
|
|
|
|
|
|
|
|
|
\image qtcreator-search-results.png "Search Results output pane"
|
|
|
|
|
|
|
|
|
|
The search results are stored in the search history (1) from which you can
|
|
|
|
|
select earlier searches.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
|
|
|
|
The figure below shows an example search result for all
|
|
|
|
|
occurrences of \c textfinder within the \c "/TextFinder" directory.
|
|
|
|
|
|
|
|
|
|
\image qtcreator-search-pane.png
|
|
|
|
|
|
|
|
|
|
\section2 Application Output
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
The \uicontrol{Application Output} pane displays the status of a program when
|
2011-09-27 11:53:38 +02:00
|
|
|
it is executed, and the debug output.
|
|
|
|
|
|
|
|
|
|
\image qtcreator-application-output.png
|
|
|
|
|
|
2012-09-14 14:14:27 +02:00
|
|
|
Select toolbar buttons to run applications, to attach the debugger to the
|
|
|
|
|
running application, and to stop running or debugging.
|
|
|
|
|
|
2011-09-27 11:53:38 +02:00
|
|
|
\section2 Compile Output
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
The \uicontrol{Compile Output} pane provides all output from the compiler.
|
|
|
|
|
The \uicontrol{Compile Output} is a more detailed version of information
|
|
|
|
|
displayed in the \uicontrol{Issues} pane.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
|
|
|
|
\image qtcreator-compile-pane.png
|
|
|
|
|
|
2012-09-14 14:15:43 +02:00
|
|
|
Double-click on a file name in an error message to open the file in the
|
|
|
|
|
code editor.
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
Select the \uicontrol {Cancel Build} button to cancel the build.
|
2012-09-14 14:15:43 +02:00
|
|
|
|
2015-11-10 16:59:02 +01:00
|
|
|
\section2 Debugger Console
|
2013-03-05 10:02:14 +01:00
|
|
|
|
2015-11-10 16:59:02 +01:00
|
|
|
In the \uicontrol {Debugger Console}, you can type JavaScript expressions and use them to get
|
2013-03-05 10:02:14 +01:00
|
|
|
information about the state of your application during debugging. You can change property
|
|
|
|
|
values temporarily, without editing the source, and view the results in the running
|
|
|
|
|
application.
|
|
|
|
|
|
2015-11-10 16:59:02 +01:00
|
|
|
\image qml-script-console.png "Debugger Console"
|
2013-03-05 10:02:14 +01:00
|
|
|
|
|
|
|
|
You can change the property values permanently in the code editor.
|
|
|
|
|
|
2012-06-20 13:13:32 +02:00
|
|
|
\section2 To-Do List
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
The \uicontrol {To-Do List Entries} pane lists the BUG, FIXME, NOTE, TODO, and
|
2012-06-20 13:13:32 +02:00
|
|
|
WARNING keywords from the current file or from all project files. The
|
|
|
|
|
keywords are organized into information, warning, and error categories.
|
|
|
|
|
|
|
|
|
|
\image qtcreator-todo-pane.png
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
To add keywords, select \uicontrol Tools > \uicontrol Options >
|
|
|
|
|
\uicontrol {To-Do} > \uicontrol Add.
|
2012-06-20 13:13:32 +02:00
|
|
|
Set an icon and a line background color for the keyword. To change the icons
|
2014-12-11 15:43:19 +01:00
|
|
|
and colors set for an existing keyword, select \uicontrol Edit.
|
2012-06-20 13:13:32 +02:00
|
|
|
|
|
|
|
|
To determine whether the keywords in the whole project or in the current
|
2014-12-11 15:43:19 +01:00
|
|
|
file are displayed by default, select \uicontrol {Scanning scope}.
|
2012-06-20 13:13:32 +02:00
|
|
|
|
2016-03-30 13:07:00 +02:00
|
|
|
To exclude files from scanning, select \uicontrol {To-Do} in the
|
2015-08-03 14:10:24 +02:00
|
|
|
\uicontrol Projects mode. Select \uicontrol Add and enter a regular
|
|
|
|
|
expression that matches the path to files to exclude. Use a forward slash
|
|
|
|
|
(/) as a separator in the path also on Windows.
|
|
|
|
|
|
2012-06-20 13:13:32 +02:00
|
|
|
The Todo plugin is disabled by default. To enable the plugin, select
|
2014-12-11 15:43:19 +01:00
|
|
|
\uicontrol Help > \uicontrol {About Plugins} > \uicontrol Utilities >
|
|
|
|
|
\uicontrol Todo and restart
|
2012-06-20 13:13:32 +02:00
|
|
|
\QC.
|
|
|
|
|
|
|
|
|
|
In addition, you can open task list files generated by code scanning and
|
2014-12-11 15:43:19 +01:00
|
|
|
analysis tools in the \uicontrol Issues pane. For more information, see
|
2012-06-20 13:13:32 +02:00
|
|
|
\l{Showing Task List Files in Issues Pane}.
|
|
|
|
|
|
2012-02-17 16:25:43 +01:00
|
|
|
\section1 Changing Languages
|
|
|
|
|
|
|
|
|
|
\QC has been localized into several languages. If the system language is one
|
|
|
|
|
of the supported languages, it is automatically selected. To change the
|
2014-12-11 15:43:19 +01:00
|
|
|
language, select \uicontrol {Tools > Options > Environment} and select a language
|
|
|
|
|
in the \uicontrol Language field. The change takes effect after you restart \QC.
|
2012-02-17 16:25:43 +01:00
|
|
|
|
2011-12-30 16:07:04 +01:00
|
|
|
\section1 Viewing Images
|
|
|
|
|
|
|
|
|
|
\QC opens image files in the image viewer.
|
|
|
|
|
|
|
|
|
|
\image qtcreator-image-viewer.png "Image viewer"
|
|
|
|
|
|
2012-02-17 16:25:43 +01:00
|
|
|
Use the toolbar buttons (1) or \l{Keyboard Shortcuts}{keyboard shortcuts}
|
|
|
|
|
to:
|
2011-12-30 16:07:04 +01:00
|
|
|
|
|
|
|
|
\list
|
|
|
|
|
|
2016-04-07 11:34:56 +02:00
|
|
|
\li Export SVG images to pixmaps
|
|
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li Switch between background and outline modes
|
2011-12-30 16:07:04 +01:00
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li Zoom in and out
|
2011-12-30 16:07:04 +01:00
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li Fit images to screen
|
2011-12-30 16:07:04 +01:00
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li Return to original size
|
2011-12-30 16:07:04 +01:00
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li Play and pause animated GIF and MNG images
|
2012-09-14 14:16:24 +02:00
|
|
|
|
2011-12-30 16:07:04 +01:00
|
|
|
\endlist
|
|
|
|
|
|
2016-04-07 11:34:56 +02:00
|
|
|
\section2 Exporting SVG Images
|
|
|
|
|
|
|
|
|
|
If you receive a freely scalable icon in the SVG format from an UI designer,
|
|
|
|
|
you can export it to several images of different sizes to create a set of
|
|
|
|
|
pixmaps. You can then use QIcon::addPixmap() to add the pixmaps to icons in
|
|
|
|
|
different modes and states.
|
|
|
|
|
|
2011-09-27 11:53:38 +02:00
|
|
|
\section1 Navigating with Keyboard
|
|
|
|
|
|
|
|
|
|
\QC caters not only to developers who are used to using the mouse,
|
|
|
|
|
but also to developers who are more comfortable with the keyboard. A wide
|
|
|
|
|
range of \l{keyboard-shortcuts}{keyboard} and
|
2011-10-19 11:16:07 +02:00
|
|
|
\l{Searching with the Locator}{navigation} shortcuts are available to help
|
2011-09-27 11:53:38 +02:00
|
|
|
speed up the process of developing your application.
|
|
|
|
|
|
2011-11-08 16:16:27 +01:00
|
|
|
\section1 Useful Features
|
|
|
|
|
|
|
|
|
|
For a list of useful \QC features described in other parts of the
|
|
|
|
|
documentation, see \l{Tips and Tricks}.
|
|
|
|
|
|
2014-12-08 15:28:16 +01:00
|
|
|
\section1 Platform Notes
|
|
|
|
|
|
|
|
|
|
\QC uses standard names and locations for standard features, such as
|
|
|
|
|
\e options or \e preferences. In this manual, the names and locations on
|
|
|
|
|
Windows and Linux are usually used to keep the instructions short. Here are
|
|
|
|
|
some places to check if you cannot find a function, dialog, or keyboard
|
|
|
|
|
shortcut on OS X when following the instructions:
|
|
|
|
|
|
|
|
|
|
\table
|
|
|
|
|
\header
|
|
|
|
|
\li For
|
|
|
|
|
\li Look In
|
|
|
|
|
\row
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol Tools > \uicontrol Options
|
|
|
|
|
\li \uicontrol {Qt Creator} > \uicontrol Preferences
|
2014-12-08 15:28:16 +01:00
|
|
|
\row
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol Help > \uicontrol {About Plugins}
|
|
|
|
|
\li \uicontrol {Qt Creator} > \uicontrol {About Plugins}
|
2014-12-08 15:28:16 +01:00
|
|
|
\row
|
|
|
|
|
\li Keyboard shortcuts
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol {Qt Creator} > \uicontrol Preferences > \uicontrol Environment >
|
|
|
|
|
\uicontrol Keyboard
|
2014-12-08 15:28:16 +01:00
|
|
|
\endtable
|
|
|
|
|
|
2011-09-27 11:53:38 +02:00
|
|
|
*/
|