2011-09-27 11:53:38 +02:00
|
|
|
/****************************************************************************
|
|
|
|
|
**
|
2020-02-24 15:38:42 +01:00
|
|
|
** Copyright (C) 2020 The Qt Company Ltd.
|
2016-01-15 14:51:16 +01:00
|
|
|
** 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.
|
|
|
|
|
// **********************************************************************
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\page creator-quick-tour.html
|
2019-03-29 15:10:22 +01:00
|
|
|
\if defined(qtdesignstudio)
|
2020-06-29 13:31:42 +03:00
|
|
|
\previouspage exporting-from-qt3ds.html
|
2019-03-29 15:10:22 +01:00
|
|
|
\else
|
|
|
|
|
\previouspage creator-overview.html
|
|
|
|
|
\endif
|
2019-04-12 16:51:44 +02:00
|
|
|
\nextpage creator-modes.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
|
2020-05-28 12:06:16 +02:00
|
|
|
\if defined(qtcreator)
|
|
|
|
|
\li Open recent sessions
|
|
|
|
|
\endif
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2020-05-28 12:06:16 +02:00
|
|
|
\li Open recent 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
|
|
|
|
2020-05-28 12:06:16 +02:00
|
|
|
\if defined(qtcreator)
|
2020-02-26 14:19:22 +01:00
|
|
|
\li Browse Qt extensions in the \l{https://marketplace.qt.io/}
|
|
|
|
|
{Qt Marketplace}
|
2020-05-28 12:06:16 +02:00
|
|
|
\endif
|
2020-02-26 14:19:22 +01:00
|
|
|
|
2016-04-18 11:44:58 +02:00
|
|
|
\li Read news from the online community and Qt blogs
|
|
|
|
|
|
|
|
|
|
\li Create or manage a Qt Account
|
2011-09-27 11:53:38 +02:00
|
|
|
|
|
|
|
|
\endlist
|
|
|
|
|
|
2019-03-29 15:10:22 +01:00
|
|
|
\if defined(qtcreator)
|
2012-02-17 16:25:43 +01:00
|
|
|
\image qtcreator-breakdown.png
|
2019-03-29 15:10:22 +01:00
|
|
|
\else
|
|
|
|
|
\image studio-welcome-mode.png
|
|
|
|
|
\endif
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2020-05-28 12:06:16 +02:00
|
|
|
\if defined(qtcreator)
|
2019-04-12 16:51:44 +02:00
|
|
|
You can use the \l{Selecting Modes}{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).
|
|
|
|
|
|
2019-04-12 16:51:44 +02:00
|
|
|
You can use the \l{Searching with the Locator}{locator} (6) to browse
|
|
|
|
|
through projects, files, classes, functions, documentation, and file
|
|
|
|
|
systems.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2019-01-02 13:45:29 +01:00
|
|
|
For a quick tour of the user interface that takes you to the locations of
|
|
|
|
|
these controls, select \uicontrol Help > \uicontrol {UI Tour}.
|
2019-04-12 16:51:44 +02:00
|
|
|
|
2020-02-24 15:38:42 +01:00
|
|
|
The following sections describe some \QC controls in more detail:
|
2019-04-12 16:51:44 +02:00
|
|
|
|
|
|
|
|
\list
|
|
|
|
|
\li \l{Selecting Modes}{Mode selector}
|
2020-02-24 15:38:42 +01:00
|
|
|
\li \l{Working with Sidebars}{Sidebars}
|
2020-05-28 12:06:16 +02:00
|
|
|
\li \l{Browsing Project Contents}{Views}
|
2020-02-24 15:38:42 +01:00
|
|
|
\li \l{Managing Workspaces}{Workspaces}
|
2019-04-12 16:51:44 +02:00
|
|
|
\li \l{Viewing Output}{Output panes}
|
|
|
|
|
\endlist
|
|
|
|
|
|
2020-05-28 12:06:16 +02:00
|
|
|
\else
|
|
|
|
|
You can use the \l{Selecting Modes}{mode selector} to switch to the
|
|
|
|
|
\l{Editing QML Files in Design Mode}{Design mode} (1), where you will do
|
|
|
|
|
most of your work and the \l{Using the Help Mode}{Help} (2) mode, where
|
|
|
|
|
you can read the product documentation. The other modes are for more
|
|
|
|
|
advanced use, and you are likely to need them less often.
|
|
|
|
|
|
|
|
|
|
Below the mode selector, you can find shortcuts to some more advanced
|
|
|
|
|
functions, such as running the application or finding problems in the
|
|
|
|
|
QML code by debugging or profiling it.
|
|
|
|
|
\endif
|
|
|
|
|
|
2019-04-12 16:51:44 +02:00
|
|
|
\section1 Navigating with Keyboard
|
|
|
|
|
|
2020-05-28 12:06:16 +02:00
|
|
|
\QC caters not only to those users who like to use the mouse, but also
|
|
|
|
|
to those who are more comfortable with the keyboard. A wide range of
|
|
|
|
|
\l{keyboard-shortcuts}{keyboard} and \l{Searching with the Locator}
|
|
|
|
|
{navigation} shortcuts are available to help you work faster.
|
2019-04-12 16:51:44 +02:00
|
|
|
|
|
|
|
|
\if defined(qtcreator)
|
|
|
|
|
\section1 Useful Features
|
|
|
|
|
|
|
|
|
|
For a list of useful \QC features described in other parts of the
|
2019-10-25 14:51:50 +02:00
|
|
|
documentation, see \l{How-tos}.
|
2019-04-12 16:51:44 +02:00
|
|
|
\endif
|
|
|
|
|
|
2019-06-07 15:09:25 +02: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 language, select \uicontrol Tools > \uicontrol Options >
|
|
|
|
|
\uicontrol Environment and select a language in the \uicontrol Language
|
2020-02-26 15:29:17 +01:00
|
|
|
field. Select \uicontrol {Restart Now} to restart \QC and have the change
|
|
|
|
|
take effect.
|
2019-06-07 15:09:25 +02:00
|
|
|
|
|
|
|
|
\section1 Viewing Images
|
|
|
|
|
|
|
|
|
|
\QC opens image files in the image viewer.
|
|
|
|
|
|
|
|
|
|
\image qtcreator-image-viewer.png "Image viewer"
|
|
|
|
|
|
|
|
|
|
Use the toolbar buttons (1) or \l{Keyboard Shortcuts}{keyboard shortcuts}
|
|
|
|
|
to:
|
|
|
|
|
|
|
|
|
|
\list
|
|
|
|
|
|
|
|
|
|
\li Export SVG images to pixmaps
|
|
|
|
|
|
|
|
|
|
\li Switch between background and outline modes
|
|
|
|
|
|
|
|
|
|
\li Zoom in and out
|
|
|
|
|
|
|
|
|
|
\li Fit images to screen
|
|
|
|
|
|
|
|
|
|
\li Return to original size
|
|
|
|
|
|
|
|
|
|
\li Play and pause animated GIF and MNG images
|
|
|
|
|
|
|
|
|
|
\endlist
|
|
|
|
|
|
|
|
|
|
\section2 Exporting SVG Images
|
|
|
|
|
|
2020-05-28 12:06:16 +02:00
|
|
|
If you have a freely scalable icon in the SVG format,
|
2019-06-07 15:09:25 +02:00
|
|
|
you can export it to several images of different sizes to create a set of
|
2020-05-28 12:06:16 +02:00
|
|
|
pixmaps.
|
|
|
|
|
\if defined(qtcreator)
|
|
|
|
|
You can then use QIcon::addPixmap() to add the pixmaps to icons in
|
2019-06-07 15:09:25 +02:00
|
|
|
different modes and states.
|
2020-05-28 12:06:16 +02:00
|
|
|
\endif
|
2019-06-07 15:09:25 +02:00
|
|
|
|
2019-04-12 16:51:44 +02:00
|
|
|
\section1 Platform Notes
|
|
|
|
|
|
|
|
|
|
This section describes the cases where the behavior of \QC depends on the
|
|
|
|
|
operating system it runs on.
|
|
|
|
|
|
|
|
|
|
\section2 Location of Functions
|
|
|
|
|
|
|
|
|
|
\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 \macos when following the instructions:
|
|
|
|
|
|
|
|
|
|
\table
|
|
|
|
|
\header
|
|
|
|
|
\li For
|
|
|
|
|
\li Look In
|
|
|
|
|
\row
|
|
|
|
|
\li \uicontrol Tools > \uicontrol Options
|
|
|
|
|
\li \uicontrol {\QC} > \uicontrol Preferences
|
|
|
|
|
\row
|
|
|
|
|
\li \uicontrol Help > \uicontrol {About Plugins}
|
|
|
|
|
\li \uicontrol {\QC} > \uicontrol {About Plugins}
|
|
|
|
|
\row
|
|
|
|
|
\li Keyboard shortcuts
|
|
|
|
|
\li \uicontrol {\QC} > \uicontrol Preferences > \uicontrol Environment >
|
|
|
|
|
\uicontrol Keyboard
|
|
|
|
|
\endtable
|
|
|
|
|
|
|
|
|
|
\if defined(qtcreator)
|
|
|
|
|
\section2 Location of Settings Files
|
|
|
|
|
|
|
|
|
|
\QC creates the following files and directories:
|
|
|
|
|
|
|
|
|
|
\list
|
|
|
|
|
|
|
|
|
|
\li QtCreator.db
|
|
|
|
|
|
|
|
|
|
\li QtCreator.ini
|
|
|
|
|
|
|
|
|
|
\li qtversion.xml
|
|
|
|
|
|
|
|
|
|
\li toolChains.xml
|
|
|
|
|
|
|
|
|
|
\li qtcreator
|
|
|
|
|
|
|
|
|
|
\li qtc-qmldump
|
|
|
|
|
|
|
|
|
|
\endlist
|
|
|
|
|
|
|
|
|
|
The location of the above files and directories depends on the platform:
|
|
|
|
|
|
|
|
|
|
\list
|
|
|
|
|
|
|
|
|
|
\li On Linux and other Unix platforms, the files are located in
|
|
|
|
|
\c {~/.config/QtProject} and
|
|
|
|
|
\c {~/.local/share/data/QtProject/qtcreator}.
|
|
|
|
|
|
|
|
|
|
\li On \macos, the files are located in \c {~/.config/QtProject} and
|
|
|
|
|
\c {~/Library/Application Support/QtProject/Qt Creator}.
|
|
|
|
|
|
|
|
|
|
\li On Windows XP, the files are located in
|
|
|
|
|
\c {%SystemDrive%\Documents and Settings\%USERNAME%\Application Data\QtProject} and
|
|
|
|
|
\c {%SystemDrive%\Documents and Settings\%USERNAME%\Local Settings\Application Data\QtProject}.
|
|
|
|
|
|
|
|
|
|
\li On Windows 7, the files are located in
|
|
|
|
|
\c {%SystemDrive%\Users\%USERNAME%\AppData\Roaming\QtProject} and
|
|
|
|
|
\c {%SystemDrive%\Users\%USERNAME%\AppData\Local\QtProject}.
|
|
|
|
|
|
|
|
|
|
\endlist
|
|
|
|
|
\endif
|
|
|
|
|
|
|
|
|
|
\section2 High DPI Scaling
|
|
|
|
|
|
|
|
|
|
The operating systems supported by \QC implement high dots-per-inch (DPI)
|
|
|
|
|
scaling at varying levels. Therefore, \QC handles high DPI scaling
|
|
|
|
|
differently on different operating system:
|
|
|
|
|
|
|
|
|
|
\list
|
|
|
|
|
|
|
|
|
|
\li On \macos, high DPI scaling is forced, which means that \QC allows
|
|
|
|
|
Qt to use the system scaling factor as the \QC scaling factor.
|
|
|
|
|
|
|
|
|
|
\li On Windows, if no \l{High DPI Support in Qt}
|
|
|
|
|
{scaling environment variables} are set, \QC instructs Qt to detect
|
|
|
|
|
the scaling factor and use it for \QC.
|
|
|
|
|
|
|
|
|
|
\li On Linux, \QC leaves it to the user to enable high DPI scaling,
|
|
|
|
|
because the process varies so much on different distributions
|
|
|
|
|
and windowing systems that it cannot be reliably done automatically.
|
|
|
|
|
|
|
|
|
|
\endlist
|
|
|
|
|
|
|
|
|
|
To override the default approach and always enable high-DPI scaling, select
|
|
|
|
|
\uicontrol Tools > \uicontrol Options > \uicontrol Environment >
|
|
|
|
|
\uicontrol {Enable high DPI scaling}. The changes will take effect after you
|
|
|
|
|
restart \QC.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\page creator-modes.html
|
|
|
|
|
\previouspage creator-quick-tour.html
|
2020-05-28 12:06:16 +02:00
|
|
|
\if defined(qtdesignstudio)
|
|
|
|
|
\nextpage creator-using-qt-quick-designer.html
|
|
|
|
|
\else
|
|
|
|
|
\nextpage creator-sidebars.html
|
|
|
|
|
\endif
|
2019-04-12 16:51:44 +02:00
|
|
|
|
|
|
|
|
\title Selecting Modes
|
|
|
|
|
|
|
|
|
|
\image qtcreator-mode-selector.png
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2020-05-28 12:06:16 +02:00
|
|
|
\if defined(qtcreator)
|
2011-09-27 11:53:38 +02:00
|
|
|
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
|
2020-06-30 09:51:45 +02:00
|
|
|
\uicontrol View > \uicontrol {Mode Selector Style} > \uicontrol Hidden.
|
2018-05-25 14:11:13 +02:00
|
|
|
To only show icons on the mode selector, select the \uicontrol {Icons Only}
|
|
|
|
|
style.
|
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"
|
2019-03-29 15:10:22 +01:00
|
|
|
\endif
|
2012-02-17 16:25:43 +01:00
|
|
|
|
2011-09-27 11:53:38 +02:00
|
|
|
You can use \QC in the following modes:
|
|
|
|
|
|
|
|
|
|
\list
|
|
|
|
|
|
2020-05-28 12:06:16 +02:00
|
|
|
\li \uicontrol {\l{User Interface}{Welcome}} mode for opening projects,
|
|
|
|
|
tutorial, and examples.
|
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.
|
|
|
|
|
|
2019-03-29 15:10:22 +01:00
|
|
|
\if defined(qtcreator)
|
|
|
|
|
\li \uicontrol{\l{Designing User Interfaces}{Design}}
|
2020-05-28 12:06:16 +02:00
|
|
|
mode for designing and developing application user interfaces.
|
|
|
|
|
This mode is available for UI files.
|
2019-03-29 15:10:22 +01:00
|
|
|
\else
|
|
|
|
|
\li \uicontrol{\l{Editing QML Files in Design Mode}{Design}}
|
|
|
|
|
mode for designing and developing application user interfaces.
|
2020-05-28 12:06:16 +02:00
|
|
|
As a designer, you'll do most of your work in this mode.
|
|
|
|
|
\endif
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2019-04-12 16:51:44 +02:00
|
|
|
\if defined(qtcreator)
|
|
|
|
|
\li \uicontrol{\l{Debugging}{Debug}}
|
|
|
|
|
\else
|
|
|
|
|
\li \uicontrol {\l{Debugging and Profiling}{Debug}}
|
|
|
|
|
\endif
|
|
|
|
|
mode for inspecting the state of your
|
2016-03-22 13:09:00 +01:00
|
|
|
application while debugging and for using code analysis tools
|
2020-05-28 12:06:16 +02:00
|
|
|
to detect memory leaks and profile code.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2019-03-29 15:10:22 +01:00
|
|
|
\if defined(qtcreator)
|
|
|
|
|
\li \uicontrol{\l{Specifying Build Settings}{Projects}} mode
|
|
|
|
|
for configuring project building and execution.
|
|
|
|
|
\else
|
|
|
|
|
\li \uicontrol{\l{Selecting the Preview Tool}{Projects}} mode
|
|
|
|
|
for selecting the tool to use for live preview.
|
|
|
|
|
\endif
|
|
|
|
|
This mode is available when a project is open.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2020-05-28 12:06:16 +02:00
|
|
|
\li \uicontrol{\l{Using the Help Mode}{Help}} mode for viewing
|
2019-03-29 15:10:22 +01:00
|
|
|
documentation.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
|
|
|
|
\endlist
|
|
|
|
|
|
2020-05-28 12:06:16 +02:00
|
|
|
\if defined(qtcreator)
|
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.
|
2020-05-28 12:06:16 +02:00
|
|
|
\endif
|
2019-04-12 16:51:44 +02:00
|
|
|
*/
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2019-04-12 16:51:44 +02:00
|
|
|
/*!
|
|
|
|
|
\page creator-output-panes.html
|
|
|
|
|
\if defined(qtdesignstudio)
|
2020-05-28 12:06:16 +02:00
|
|
|
\previouspage creator-views.html
|
|
|
|
|
\nextpage creator-highlighting.html
|
2019-04-12 16:51:44 +02:00
|
|
|
\else
|
2020-05-28 12:06:16 +02:00
|
|
|
\previouspage creator-project-managing-workspaces.html
|
2019-04-12 16:51:44 +02:00
|
|
|
\nextpage creator-configuring.html
|
2019-03-29 15:10:22 +01:00
|
|
|
\endif
|
2013-08-13 22:58:38 +02:00
|
|
|
|
2019-04-12 16:51:44 +02:00
|
|
|
\title Viewing Output
|
|
|
|
|
|
2019-06-06 11:51:07 +02:00
|
|
|
\image qtcreator-general-messages.png "General Messages output pane"
|
2011-09-27 11:53:38 +02:00
|
|
|
|
|
|
|
|
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
|
|
|
|
2019-03-22 10:07:20 +01:00
|
|
|
\li \uicontrol {QML Debugger Console}
|
2013-03-05 10:02:14 +01:00
|
|
|
|
2019-03-29 15:10:22 +01:00
|
|
|
\li \uicontrol{General Messages}
|
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
|
|
|
|
2019-03-29 15:10:22 +01:00
|
|
|
\if defined(qtcreator)
|
2016-01-25 11:08:08 +01:00
|
|
|
\li \uicontrol{Test Results}
|
2015-04-08 10:03:43 +02:00
|
|
|
|
2019-03-29 15:10:22 +01:00
|
|
|
\li \uicontrol {To-Do Entries}
|
|
|
|
|
\endif
|
|
|
|
|
|
2011-09-27 11:53:38 +02:00
|
|
|
\endlist
|
|
|
|
|
|
2019-04-12 16:51:44 +02:00
|
|
|
Output panes are available in all \l{Selecting Modes}{modes}. Click the name
|
|
|
|
|
of an output pane to open the pane. To maximize an open output pane, click
|
|
|
|
|
the \uicontrol {Maximize Output Pane} button or press \key {Alt+9}.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2019-07-10 09:45:08 +02:00
|
|
|
|
|
|
|
|
To increase or decrease the output text size, select \inlineimage plus.png
|
|
|
|
|
(\uicontrol {Zoom In}) or \inlineimage minus.png
|
|
|
|
|
(\uicontrol {Zoom Out}), or press \key Ctrl++ or \key Ctrl+-. Zooming is
|
|
|
|
|
not supported in all output panes.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2019-03-29 15:10:22 +01:00
|
|
|
To open the \uicontrol{General Messages} and
|
|
|
|
|
\if defined(qtcreator)
|
|
|
|
|
\l{Using Version Control Systems}{Version Control}
|
|
|
|
|
\else
|
|
|
|
|
\l{Using Git}{Version Control}
|
|
|
|
|
\endif
|
2020-06-30 09:51:45 +02:00
|
|
|
panes, select \uicontrol View > \uicontrol {Output Panes}.
|
2019-03-29 15:10:22 +01:00
|
|
|
\if defined(qtcreator)
|
|
|
|
|
To display the \uicontrol {To-Do Entries} pane, enable the Todo plugin.
|
|
|
|
|
\endif
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2019-03-22 10:07:20 +01:00
|
|
|
For more information about the \uicontrol {QML Debugger Console} view, see
|
2018-08-20 13:33:07 +02:00
|
|
|
\l{Executing JavaScript Expressions}.
|
|
|
|
|
|
2020-03-02 14:42:13 +01:00
|
|
|
\section1 Finding and Filtering Output
|
|
|
|
|
|
|
|
|
|
To search from output, press \key {Ctrl+F} when the pane is active. Enter
|
|
|
|
|
search criteria in the \uicontrol Find field. For more information, see
|
|
|
|
|
\l{Finding and Replacing}.
|
|
|
|
|
|
|
|
|
|
Besides searching from the output, you can enter a string in the
|
|
|
|
|
\uicontrol Filter field to filter it. To specify filtering options,
|
|
|
|
|
select the \inlineimage magnifier.png "Filtering options menu"
|
|
|
|
|
button. You can filter output by using regular expressions or
|
|
|
|
|
case-sensitivity. Select \uicontrol {Show Non-matching Lines} to
|
|
|
|
|
hide the lines that match the filter.
|
|
|
|
|
|
|
|
|
|
Finding and filtering are not supported in all output panes.
|
|
|
|
|
|
2019-04-12 16:51:44 +02:00
|
|
|
\section1 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
|
|
|
|
2019-03-29 15:10:22 +01:00
|
|
|
\if defined(qtdesignstudio)
|
|
|
|
|
\li \uicontrol {Asset Importer Error} - Errors and warnings encountered
|
|
|
|
|
while importing assets from a design tool.
|
2019-10-31 16:35:57 +01:00
|
|
|
\else
|
|
|
|
|
\li \uicontrol Autotests - Errors and warnings encountered while running
|
|
|
|
|
tests.
|
2019-03-29 15:10:22 +01:00
|
|
|
\endif
|
|
|
|
|
|
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.
|
|
|
|
|
|
2019-03-29 15:10:22 +01:00
|
|
|
\if defined(qtcreator)
|
2018-05-28 12:46:44 +02:00
|
|
|
\li \uicontrol {Clang Code Model} -
|
|
|
|
|
\l {Parsing C++ Files with the Clang Code Model}
|
|
|
|
|
{Errors and warnings from the current editor}.
|
2019-03-29 15:10:22 +01:00
|
|
|
\endif
|
2018-05-28 12:46:44 +02:00
|
|
|
|
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.
|
|
|
|
|
|
2019-03-29 15:10:22 +01:00
|
|
|
\if defined(qtcreator)
|
2016-03-22 13:09:00 +01:00
|
|
|
\li \uicontrol Debugger - Errors encountered while running the
|
|
|
|
|
\l{Analyzing Code}{Valgrind code analysis tools}.
|
2019-03-29 15:10:22 +01:00
|
|
|
\endif
|
2016-03-22 13:09:00 +01:00
|
|
|
|
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
|
2017-08-17 17:02:56 +02:00
|
|
|
successfully and starting it on a \l{glossary-device}{device}.
|
2013-10-22 13:55:47 +02:00
|
|
|
|
2019-03-29 15:10:22 +01:00
|
|
|
\if defined(qtcreator)
|
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}.
|
|
|
|
|
|
2018-05-28 12:46:44 +02:00
|
|
|
\li \uicontrol Python - Runtime errors and exceptions of Python scripts.
|
2019-03-29 15:10:22 +01:00
|
|
|
\endif
|
2018-05-28 12:46:44 +02:00
|
|
|
|
2018-08-24 13:28:54 +02:00
|
|
|
\li \uicontrol QML and \uicontrol {QML Analysis} -
|
|
|
|
|
\l{JavaScript and QML Error Codes}
|
|
|
|
|
{QML and JavaScript syntax errors}.
|
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.
|
|
|
|
|
|
2019-06-06 11:51:07 +02:00
|
|
|
\image qtcreator-issues.png "Issues output pane"
|
2011-10-14 12:29:53 +02:00
|
|
|
|
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
|
|
|
|
2019-06-07 16:24:24 +02:00
|
|
|
By default, the \uicontrol Issues pane is cleared on a new build. To keep
|
|
|
|
|
the issues from the previous build rounds, deselect \uicontrol Tools >
|
|
|
|
|
\uicontrol Options > \uicontrol {Build & Run} > \uicontrol General >
|
|
|
|
|
\uicontrol {Clear issues list on new build}.
|
|
|
|
|
|
2019-04-12 16:51:44 +02:00
|
|
|
\section1 Search Results
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
In the \uicontrol{Search Results} pane, you can search through projects, files on
|
2017-04-13 14:34:37 +02:00
|
|
|
a file system or the currently open files:
|
2012-02-17 16:25:43 +01:00
|
|
|
|
|
|
|
|
\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
|
2017-04-13 14:34:37 +02:00
|
|
|
occurrences of the search string in the specified directory.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2018-05-25 13:57:10 +02:00
|
|
|
\image qtcreator-searchresults.png
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2017-04-13 14:34:37 +02:00
|
|
|
For more information about the different search options, see
|
|
|
|
|
\l {Finding and Replacing}.
|
|
|
|
|
|
2019-04-12 16:51:44 +02:00
|
|
|
\section1 Application Output
|
2011-09-27 11:53:38 +02:00
|
|
|
|
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
|
|
|
|
|
|
2019-03-29 15:10:22 +01:00
|
|
|
\if defined(qtcreator)
|
2019-03-18 13:20:38 +01:00
|
|
|
If you specify command line arguments in the run settings that are passed
|
|
|
|
|
to the application when running it, they are displayed as a part of the
|
|
|
|
|
application output. For more information, see
|
|
|
|
|
\l{Specifying Run Settings for Desktop Device Types}.
|
2019-03-29 15:10:22 +01:00
|
|
|
\endif
|
2019-03-18 13:20:38 +01:00
|
|
|
|
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.
|
|
|
|
|
|
2016-04-18 11:53:58 +02:00
|
|
|
To specify settings for displaying application output, select
|
|
|
|
|
\uicontrol Tools > \uicontrol Options > \uicontrol {Build & Run} >
|
2019-03-12 10:18:14 +01:00
|
|
|
\uicontrol Application Output, or click the \uicontrol {Open Settings Page}
|
|
|
|
|
button. You can select whether to open the \uicontrol{Application Output} pane
|
|
|
|
|
on output when running or debugging applications, to clear old output on a new run,
|
|
|
|
|
to word-wrap output, and to limit output to the specified number of lines.
|
2016-04-18 11:53:58 +02:00
|
|
|
|
2019-04-12 16:51:44 +02:00
|
|
|
\section1 Compile Output
|
2011-09-27 11:53:38 +02:00
|
|
|
|
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
|
|
|
|
2019-06-06 11:51:07 +02:00
|
|
|
\image qtcreator-compile-output.png "Compile Output pane"
|
2011-09-27 11:53:38 +02:00
|
|
|
|
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
|
|
|
|
2016-04-18 11:53:58 +02:00
|
|
|
To specify whether to open the \uicontrol {Compile Output} pane on output
|
|
|
|
|
when building applications, select \uicontrol Tools > \uicontrol Options >
|
2019-03-01 15:18:40 +01:00
|
|
|
\uicontrol {Build & Run} > \uicontrol Compile Output, and then select the
|
|
|
|
|
\uicontrol {Open pane when building} check box.
|
|
|
|
|
In the \uicontrol {Limit output to} field, you can specify the maximum
|
2017-10-27 11:18:43 +02:00
|
|
|
amount of build output lines to display in the pane.
|
2016-04-18 11:53:58 +02:00
|
|
|
|
2019-03-12 10:18:14 +01:00
|
|
|
You can also reach the options page by clicking the \uicontrol {Open Settings Page}
|
|
|
|
|
button.
|
|
|
|
|
|
2019-06-07 15:55:58 +02:00
|
|
|
To copy the output from the pane to the clipboard, select
|
|
|
|
|
\uicontrol {Select All} in the context menu, and then select
|
|
|
|
|
\uicontrol Copy. Save the output as a file if you want to
|
|
|
|
|
examine it later without having to build the project again.
|
|
|
|
|
This is useful for large projects that take a long time to build.
|
|
|
|
|
|
|
|
|
|
\section2 Parsing Existing Compile Output
|
|
|
|
|
|
|
|
|
|
You can use \QC's output parsers to parse output from builds done outside
|
|
|
|
|
of \QC or stored from previous build runs. By default, the parsers from the
|
|
|
|
|
kit selected for the active project are used, but you can select another
|
|
|
|
|
kit.
|
|
|
|
|
|
|
|
|
|
To parse compile output:
|
|
|
|
|
|
|
|
|
|
\list 1
|
|
|
|
|
\li Select \uicontrol Tools > \uicontrol {Parse Build Output}.
|
|
|
|
|
\image qtcreator-parse-build-output.png
|
|
|
|
|
\li Paste the build output in the \uicontrol {Build Output} field, or
|
|
|
|
|
select \uicontrol {Load from File} to load it from a file.
|
|
|
|
|
\li Deselect the \uicontrol {Output went to stderr} check box if the
|
|
|
|
|
parser expects issues on \c stdout.
|
|
|
|
|
\li In the \uicontrol {Use parsers from kit} field, select the kit to
|
|
|
|
|
use for parsing the output. Select \uicontrol Manage to view
|
|
|
|
|
and modify kit settings.
|
|
|
|
|
\li The parser displays the parsed output in the \uicontrol Issues
|
|
|
|
|
pane. By default, the pane is cleared before adding the new output.
|
|
|
|
|
Deselect the \uicontrol {Clear existing tasks} check box to append
|
|
|
|
|
the new output to the old output.
|
|
|
|
|
\li Select \uicontrol OK to start parsing.
|
|
|
|
|
\endlist
|
|
|
|
|
|
2019-03-29 15:10:22 +01:00
|
|
|
\if defined(qtcreator)
|
2019-04-12 16:51:44 +02:00
|
|
|
\section1 To-Do Entries
|
2012-06-20 13:13:32 +02:00
|
|
|
|
2016-07-25 16:38:19 +02:00
|
|
|
The \uicontrol {To-Do Entries} pane lists the BUG, FIXME, NOTE, TODO, and
|
2017-05-09 13:50:55 +02:00
|
|
|
WARNING keywords from the current file, from all project files, or from a
|
|
|
|
|
subproject. Click the icons on the toolbar to show only the selected
|
|
|
|
|
keywords.
|
2012-06-20 13:13:32 +02:00
|
|
|
|
|
|
|
|
\image qtcreator-todo-pane.png
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
To add keywords, select \uicontrol Tools > \uicontrol Options >
|
2017-05-09 13:50:55 +02:00
|
|
|
\uicontrol {To-Do} > \uicontrol Add. Set an icon and a line background color
|
|
|
|
|
for the keyword.
|
2012-06-20 13:13:32 +02:00
|
|
|
|
2017-05-09 13:50:55 +02:00
|
|
|
\image qtcreator-todo-options.png
|
2012-06-20 13:13:32 +02:00
|
|
|
|
2017-05-09 13:50:55 +02:00
|
|
|
To change the icon and line background color of the selected keyword, select
|
|
|
|
|
\uicontrol Edit.
|
|
|
|
|
|
|
|
|
|
To remove the selected keyword, select \uicontrol Remove.
|
|
|
|
|
|
|
|
|
|
To reset the list to predefined keywords, select \uicontrol Reset. All your
|
|
|
|
|
changes will be permanently lost.
|
|
|
|
|
|
|
|
|
|
To determine whether the keywords in the whole project, in the current file,
|
|
|
|
|
or in a subproject are displayed by default, select the appropriate option
|
|
|
|
|
in the \uicontrol {Scanning scope} group.
|
|
|
|
|
|
|
|
|
|
To exclude files from scanning, select \uicontrol {Project Settings} >
|
|
|
|
|
\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 >
|
2020-02-26 15:29:17 +01:00
|
|
|
\uicontrol Todo. Then select \uicontrol {Restart Now} to restart \QC
|
|
|
|
|
and load the plugin.
|
2012-06-20 13:13:32 +02:00
|
|
|
|
|
|
|
|
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}.
|
2019-03-29 15:10:22 +01:00
|
|
|
\endif
|
2012-06-20 13:13:32 +02:00
|
|
|
|
2011-09-27 11:53:38 +02:00
|
|
|
*/
|