2011-09-27 11:53:38 +02:00
|
|
|
/****************************************************************************
|
|
|
|
|
**
|
2020-02-25 11:24:03 +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
|
|
|
**
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\page creator-help.html
|
2018-08-17 14:34:45 +02:00
|
|
|
\if defined(qtdesignstudio)
|
2018-11-09 16:20:25 +01:00
|
|
|
\previouspage {Examples and Tutorials}
|
2018-08-17 14:34:45 +02:00
|
|
|
\nextpage studio-faq.html
|
|
|
|
|
\else
|
|
|
|
|
\previouspage creator-help-overview.html
|
2011-12-13 11:52:47 +01:00
|
|
|
\nextpage creator-faq.html
|
2018-08-17 14:34:45 +02:00
|
|
|
\endif
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2011-12-13 11:52:47 +01:00
|
|
|
\title Using the Help Mode
|
2011-09-27 11:53:38 +02:00
|
|
|
|
|
|
|
|
\QC comes fully integrated with Qt documentation and examples using the Qt
|
|
|
|
|
Help plugin.
|
|
|
|
|
|
|
|
|
|
\list
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li To view documentation, switch to \uicontrol Help mode.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li To view context sensitive help on a Qt class or function as a
|
2012-03-07 15:04:10 +01:00
|
|
|
tooltip, move the mouse cursor over the class or function. If help
|
|
|
|
|
is not available, the tooltip displays type information for the
|
|
|
|
|
symbol.
|
|
|
|
|
|
2018-05-28 14:38:42 +02:00
|
|
|
\li To display the full help on a Qt class or function, press \key F1 or
|
|
|
|
|
select \uicontrol {Context Help} in the context menu.
|
2012-03-07 15:04:10 +01:00
|
|
|
The documentation is displayed in a
|
2020-02-25 11:24:03 +01:00
|
|
|
view next to the code editor, or, if there is not enough vertical
|
2014-12-11 15:43:19 +01:00
|
|
|
space, in the fullscreen \uicontrol Help mode.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li To select and configure how the documentation is displayed in the
|
2014-12-11 15:43:19 +01:00
|
|
|
\uicontrol Help mode, select \uicontrol Tools > \uicontrol Options > \uicontrol Help.
|
2011-09-27 11:53:38 +02:00
|
|
|
\endlist
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
The following image displays the context sensitive help in the \uicontrol Edit
|
2011-09-27 11:53:38 +02:00
|
|
|
mode.
|
|
|
|
|
|
|
|
|
|
\image qtcreator-context-sensitive-help.png
|
|
|
|
|
|
2019-06-04 17:09:30 +02:00
|
|
|
If the help HTML file does not use a style sheet, you can change the font
|
|
|
|
|
family, style, and size in \uicontrol Tools > \uicontrol Options >
|
|
|
|
|
\uicontrol Help > \uicontrol General.
|
|
|
|
|
|
|
|
|
|
\image qtcreator-help-options.png
|
|
|
|
|
|
|
|
|
|
By default, you can use the mouse scroll wheel to zoom help pages. To
|
|
|
|
|
disable this feature, deselect the \uicontrol {Enable scroll wheel zooming}
|
|
|
|
|
check box.
|
|
|
|
|
|
|
|
|
|
To switch to the editor context when you close the last help page, select
|
|
|
|
|
the \uicontrol {Return to editor on closing the last page} check box.
|
|
|
|
|
|
2020-04-14 15:04:26 +02:00
|
|
|
\section1 Selecting the Help Viewer Backend
|
|
|
|
|
|
|
|
|
|
The help viewer backend determines the style sheet that is used to display
|
|
|
|
|
the help files. A help viewer backend that is based on the \l {QTextBrowser}
|
|
|
|
|
is used by default. However, it has several issues that have been fixed when
|
|
|
|
|
using litehtml as the help viewer backend.
|
|
|
|
|
|
|
|
|
|
On \macos, you can also use a help viewer backend that is based on the
|
|
|
|
|
system WebView component.
|
|
|
|
|
|
|
|
|
|
To switch the help viewer backend:
|
|
|
|
|
|
|
|
|
|
\list 1
|
|
|
|
|
\li Select \uicontrol Tools > \uicontrol Options > \uicontrol Help >
|
|
|
|
|
\uicontrol General.
|
|
|
|
|
\li In the \uicontrol {Viewer backend} field, select a viewer backend.
|
|
|
|
|
\li Reload the help page to take the new backend to use.
|
|
|
|
|
\endlist
|
|
|
|
|
|
2012-03-07 15:04:10 +01:00
|
|
|
\section1 Viewing Function Tooltips
|
|
|
|
|
|
2020-04-02 11:46:41 +02:00
|
|
|
To hide function tooltips by default, select \uicontrol Tools >
|
|
|
|
|
\uicontrol Options > \uicontrol {Text Editor} > \uicontrol Behavior >
|
|
|
|
|
\uicontrol {Show help tooltips using the mouse} >
|
|
|
|
|
\uicontrol {On Shift+Mouseover}. You can still view the tooltips by pressing
|
|
|
|
|
and holding down the \key Shift key.
|
2012-03-07 15:04:10 +01:00
|
|
|
|
|
|
|
|
To use a keyboard shortcut for viewing help tooltips, select
|
2014-12-11 15:43:19 +01:00
|
|
|
\uicontrol {Show help tooltips using keyboard shortcut (Alt)}.
|
2012-03-07 15:04:10 +01:00
|
|
|
|
2011-09-27 11:53:38 +02:00
|
|
|
\section1 Finding Information in Qt Documentation
|
|
|
|
|
|
|
|
|
|
\QC, \QSDK and other Qt deliverables contain documentation
|
2014-12-11 15:43:19 +01:00
|
|
|
as .qch files. All the documentation is accessible in the \uicontrol Help mode.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2020-02-27 17:05:51 +01:00
|
|
|
By default, \QC registers only the latest available version of the
|
|
|
|
|
documentation for each installed Qt module. To register all installed
|
|
|
|
|
documentation, select \uicontrol Tools > \uicontrol Options >
|
|
|
|
|
\uicontrol Kits > \uicontrol {Qt Versions} >
|
|
|
|
|
\uicontrol {Register documentation}.
|
|
|
|
|
|
2011-09-27 11:53:38 +02:00
|
|
|
To find information in the documentation, select:
|
|
|
|
|
|
|
|
|
|
\list
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol Bookmarks to view a list of pages on which you have added
|
2011-09-27 11:53:38 +02:00
|
|
|
bookmarks.
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol Contents to see all the documentation installed on the
|
2011-09-27 11:53:38 +02:00
|
|
|
development PC and to browse the documentation contents.
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol Index to find information based on a list of keywords in all
|
2011-09-27 11:53:38 +02:00
|
|
|
the installed documents.
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol {Open Pages} to view a list of currently open documentation
|
2011-09-27 11:53:38 +02:00
|
|
|
pages.
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li \uicontrol Search to search from all the installed documents.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
|
|
|
|
\endlist
|
|
|
|
|
|
|
|
|
|
\section2 Adding Bookmarks to Help Pages
|
|
|
|
|
|
|
|
|
|
You can add bookmarks to useful help pages to easily find them later
|
2014-12-11 15:43:19 +01:00
|
|
|
in the \uicontrol Bookmarks view. You can either use the page title as the
|
2011-09-27 11:53:38 +02:00
|
|
|
bookmark or change it to any text. You can organize the bookmarks in
|
|
|
|
|
folders in the view.
|
|
|
|
|
|
|
|
|
|
\image qtcreator-help-add-bookmark-dlg.png "Add Bookmark dialog"
|
|
|
|
|
|
|
|
|
|
To add a bookmark to an open help page:
|
|
|
|
|
|
|
|
|
|
\list 1
|
|
|
|
|
|
2016-05-03 13:49:23 +02:00
|
|
|
\li Click the \inlineimage bookmark.png
|
2014-12-11 15:43:19 +01:00
|
|
|
(\uicontrol {Add Bookmark}) button on the toolbar.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li In the \uicontrol {Add Bookmark} dialog, click \uicontrol OK to save the
|
2013-11-22 15:01:55 +01:00
|
|
|
page title as a bookmark in the selected folder.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
|
|
|
|
\endlist
|
|
|
|
|
|
2019-06-04 17:09:30 +02:00
|
|
|
To import and export bookmarks, select \uicontrol Tools > \uicontrol Options
|
|
|
|
|
> \uicontrol Help > \uicontrol General > \uicontrol {Import Bookmarks} or
|
|
|
|
|
\uicontrol {Export Bookmarks}.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2012-05-15 17:08:50 +02:00
|
|
|
\section2 Full-text Search
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
In the \uicontrol Search pane, you can use full-text search for finding a
|
2019-06-04 17:09:30 +02:00
|
|
|
particular word in all the installed documents. Enter the term you are
|
|
|
|
|
looking for, and select the \uicontrol Search button. All documents that
|
|
|
|
|
contain the specified term are listed. The list is sorted by document
|
|
|
|
|
version (if you have installed several Qt versions, for example) and
|
|
|
|
|
the number of search hits that the documents contain. Select a document in
|
|
|
|
|
the list to open it.
|
2012-05-15 17:08:50 +02:00
|
|
|
|
|
|
|
|
\image qtcreator-help-search.png "Search pane"
|
|
|
|
|
|
|
|
|
|
The following are examples of common search patterns:
|
|
|
|
|
|
|
|
|
|
\list
|
|
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li \c deep lists all the documents that contain the word \c deep.
|
2012-05-15 17:08:50 +02:00
|
|
|
The search is not case sensitive.
|
|
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li \c{deep*} lists all the documents that contain a word beginning
|
2012-05-15 17:08:50 +02:00
|
|
|
with \c deep
|
|
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li \c{deep copy} lists all documents that contain both \c deep and
|
2012-05-15 17:08:50 +02:00
|
|
|
\c copy
|
|
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li \c{"deep copy"} lists all documents that contain the phrase
|
2012-05-15 17:08:50 +02:00
|
|
|
\c{deep copy}
|
|
|
|
|
|
|
|
|
|
\endlist
|
|
|
|
|
|
|
|
|
|
Full-text search is based on indexing all the installed documents the first
|
2014-12-11 15:43:19 +01:00
|
|
|
time when you open the \uicontrol Search pane. If you add or remove documents,
|
2012-05-15 17:08:50 +02:00
|
|
|
\QC recreates the index.
|
|
|
|
|
|
|
|
|
|
If you cannot find words that you know are there, indexing might not have
|
2014-06-18 14:28:47 +02:00
|
|
|
been completed for some reason. To regenerate the index, click
|
2016-05-03 13:49:23 +02:00
|
|
|
\inlineimage reload_gray.png
|
2014-12-11 15:43:19 +01:00
|
|
|
(\uicontrol {Regenerate Index}).
|
2012-05-15 17:08:50 +02:00
|
|
|
|
|
|
|
|
Punctuation is not included in indexed terms. To find terms that contain
|
|
|
|
|
punctuation, such as domain names, use the asterisk as a wild card. For
|
|
|
|
|
example, to find \c {Pastebin.Com}, enter the search term \c {Pastebin*}.
|
|
|
|
|
|
2011-09-27 11:53:38 +02:00
|
|
|
\section1 Adding External Documentation
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
You can display external documentation in the \uicontrol Help mode.
|
2011-09-27 11:53:38 +02:00
|
|
|
To augment or replace the documentation that ships with \QC and Qt:
|
|
|
|
|
|
|
|
|
|
\list 1
|
|
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li Create a .qch file from your documentation.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
|
|
|
|
For information on how to prepare your documentation and create a
|
2013-11-25 17:37:19 +01:00
|
|
|
.qch file, see \l{The Qt Help Framework}.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li To add the .qch file to \QC, select \uicontrol Tools > \uicontrol Options >
|
|
|
|
|
\uicontrol Help > \uicontrol Documentation > \uicontrol Add.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
|
|
|
|
\endlist
|
|
|
|
|
|
|
|
|
|
\section1 Detaching the Help Window
|
|
|
|
|
|
|
|
|
|
By default, context-sensitive help is opened in a window next to the
|
|
|
|
|
code editor when you press \key F1. If there is not enough vertical
|
|
|
|
|
space, the help opens in the full-screen help mode.
|
|
|
|
|
|
|
|
|
|
You can specify that the help always opens in full-screen mode or
|
2016-05-03 09:38:15 +02:00
|
|
|
is detached to an external window. Select \uicontrol Tools >
|
|
|
|
|
\uicontrol Options > \uicontrol Help > \uicontrol General and specify
|
|
|
|
|
settings for displaying context-sensitive help
|
2014-12-11 15:43:19 +01:00
|
|
|
in the \uicontrol {On context help} field. To detach the help window, select
|
2016-05-03 09:38:15 +02:00
|
|
|
\uicontrol {Always Show in External Window}.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2020-02-27 17:05:51 +01:00
|
|
|
To change this setting in a help view, select the \inlineimage linkicon.png
|
|
|
|
|
toolbar button.
|
|
|
|
|
|
2012-05-18 10:23:19 +02:00
|
|
|
\section1 Selecting the Start Page
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
You can select the page to display when you open the \uicontrol Help mode in the
|
2016-05-03 09:38:15 +02:00
|
|
|
\uicontrol Tools > \uicontrol Options > \uicontrol Help > \uicontrol General
|
|
|
|
|
> \uicontrol {On help start} field.
|
2020-02-25 11:24:03 +01:00
|
|
|
To display the page and help views that were open when you exited the mode,
|
2014-12-11 15:43:19 +01:00
|
|
|
select the \uicontrol {Show My Tabs from Last Session} option. However, Web pages
|
|
|
|
|
are not opened, because loading them would slow down opening the \uicontrol Help
|
2012-05-18 10:23:19 +02:00
|
|
|
mode.
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
To display a particular page, select \uicontrol {Show My Home Page}, and specify
|
|
|
|
|
the page in the \uicontrol {Home Page} field.
|
2012-05-18 10:23:19 +02:00
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
To display a blank page, select the \uicontrol {Show a Blank Page} option. You can
|
|
|
|
|
also select the \uicontrol {Use Blank Page} button to set a blank page as your
|
2012-05-18 10:23:19 +02:00
|
|
|
home page.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
|
|
|
|
\section1 Using Documentation Filters
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
You can filter the documents displayed in the \uicontrol Help mode to find
|
2016-05-03 09:38:15 +02:00
|
|
|
relevant information faster. Select a filter from a list of filters (1). The
|
|
|
|
|
contents of the \uicontrol Index and \uicontrol Contents
|
2020-02-25 11:24:03 +01:00
|
|
|
view in the sidebar change accordingly.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
|
|
|
|
\image qtcreator-help-filters.png "Help filters"
|
|
|
|
|
|
|
|
|
|
You can modify the filters to include external documentation, for example,
|
|
|
|
|
or you can define your own filters. To construct filters, you can use the
|
|
|
|
|
filter attributes that are specified in the documentation. Each document
|
|
|
|
|
contains at least one filter attribute. If several documents contain the
|
|
|
|
|
same filter attribute, such as \c tools, you can use that attribute to
|
|
|
|
|
include all those documents.
|
|
|
|
|
|
|
|
|
|
To add filters:
|
|
|
|
|
|
|
|
|
|
\list 1
|
|
|
|
|
|
2020-04-02 11:46:41 +02:00
|
|
|
\li Select \uicontrol Tools > \uicontrol Options > \uicontrol Help >
|
|
|
|
|
\uicontrol Filters > \uicontrol Add.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li Enter a name for the filter and press \uicontrol {OK}.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li In \uicontrol Attributes, select the documents that you want to include
|
2011-09-27 11:53:38 +02:00
|
|
|
in the filter.
|
|
|
|
|
|
|
|
|
|
\image qtcreator-help-filter-attributes.png "Help filter attributes"
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
\li Click \uicontrol OK.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2016-05-03 09:38:15 +02:00
|
|
|
\li In the \uicontrol Help mode, select the filter in the list of
|
|
|
|
|
filters to see the filtered documentation in the sidebar.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
|
|
|
|
\endlist
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
To modify filters, select a filter in \uicontrol Filters, select the attributes,
|
|
|
|
|
and then click \uicontrol Apply.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
To remove filters, select them in \uicontrol Filters, and click \uicontrol Remove.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
|
|
|
|
*/
|