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-help-overview.html
|
2011-09-27 11:53:38 +02:00
|
|
|
\page creator-help.html
|
2011-12-13 11:52:47 +01:00
|
|
|
\nextpage creator-faq.html
|
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
|
|
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li To view documentation, switch to \gui 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.
|
|
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li To display the full help on a Qt class or function, press \key F1.
|
2012-03-07 15:04:10 +01:00
|
|
|
The documentation is displayed in a
|
2011-09-27 11:53:38 +02:00
|
|
|
pane next to the code editor, or, if there is not enough vertical
|
|
|
|
|
space, in the fullscreen \gui Help mode.
|
|
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li To select and configure how the documentation is displayed in the
|
2011-09-27 11:53:38 +02:00
|
|
|
\gui Help mode, select \gui Tools > \gui Options > \gui Help.
|
|
|
|
|
|
|
|
|
|
\endlist
|
|
|
|
|
|
|
|
|
|
The following image displays the context sensitive help in the \gui Edit
|
|
|
|
|
mode.
|
|
|
|
|
|
|
|
|
|
\image qtcreator-context-sensitive-help.png
|
|
|
|
|
|
2012-03-07 15:04:10 +01:00
|
|
|
\section1 Viewing Function Tooltips
|
|
|
|
|
|
|
|
|
|
To hide function tooltips by default, select \gui {Tools > Options >
|
2013-11-22 15:01:55 +01:00
|
|
|
Text Editor > Behavior > Show help tooltips using the mouse >
|
|
|
|
|
On Shift+Mouseover}. You
|
2013-10-04 17:22:10 +02:00
|
|
|
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
|
2013-10-04 17:22:10 +02:00
|
|
|
\gui {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
|
|
|
|
|
as .qch files. All the documentation is accessible in the \gui Help mode.
|
|
|
|
|
|
|
|
|
|
To find information in the documentation, select:
|
|
|
|
|
|
|
|
|
|
\list
|
|
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li \gui Bookmarks to view a list of pages on which you have added
|
2011-09-27 11:53:38 +02:00
|
|
|
bookmarks.
|
|
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li \gui 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.
|
|
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li \gui Index to find information based on a list of keywords in all
|
2011-09-27 11:53:38 +02:00
|
|
|
the installed documents.
|
|
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li \gui {Open Pages} to view a list of currently open documentation
|
2011-09-27 11:53:38 +02:00
|
|
|
pages.
|
|
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li \gui 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
|
|
|
|
|
in the \gui Bookmarks view. You can either use the page title as the
|
|
|
|
|
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
|
|
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li Click the
|
2011-09-27 11:53:38 +02:00
|
|
|
\inlineimage qtcreator-help-add-bookmark.png
|
|
|
|
|
(\gui {Add Bookmark}) button on the toolbar.
|
|
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li In the \gui {Add Bookmark} dialog, click \gui 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
|
|
|
|
|
|
|
|
|
|
To import and export bookmarks, select \gui {Tools > Options > Help >
|
|
|
|
|
General Settings > Import} or \gui Export.
|
|
|
|
|
|
2012-05-15 17:08:50 +02:00
|
|
|
\section2 Full-text Search
|
|
|
|
|
|
|
|
|
|
In the \gui Search pane, you can use full-text search for finding a
|
|
|
|
|
particular word in all the installed documents. In the \gui {Search for}
|
|
|
|
|
field, enter the term you are looking for, and select the \gui Search
|
|
|
|
|
button. All documents that contain the specified term are listed. The list
|
|
|
|
|
is sorted by the number of search hits that the documents contain. Select a
|
|
|
|
|
document in the list to open it.
|
|
|
|
|
|
|
|
|
|
\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
|
|
|
|
|
|
|
|
|
|
For more flexibility, use the \gui {Advanced search}. Specify words to
|
|
|
|
|
exclude from the search hits, or search for an exact phrase or for similar
|
|
|
|
|
words. For example, searching for \c{QStin}, \c{QSting}, or \c{QStrin} lists
|
|
|
|
|
all the documents with titles that are similar, such as \c{QString}.
|
|
|
|
|
Combine options to improve the search results.
|
|
|
|
|
|
|
|
|
|
Full-text search is based on indexing all the installed documents the first
|
|
|
|
|
time when you open the \gui Search pane. If you add or remove documents,
|
|
|
|
|
\QC recreates the index.
|
|
|
|
|
|
|
|
|
|
If you cannot find words that you know are there, indexing might not have
|
|
|
|
|
been completed for some reason. Remove the \c {.helpcollection} folder and
|
|
|
|
|
open the \gui Search pane again to recreate the index. The folder is located
|
2012-10-09 12:21:04 +02:00
|
|
|
in \c { ~/.config/QtProject/qtcreator/.helpcollection} on Linux and Mac OS X and
|
|
|
|
|
in \c {\AppData\Roaming\QtProject\qtcreator\} on Windows.
|
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
|
|
|
|
|
|
|
|
|
|
You can display external documentation in the \gui Help mode.
|
|
|
|
|
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
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li To add the .qch file to \QC, select \gui Tools > \gui Options >
|
2011-09-27 11:53:38 +02:00
|
|
|
\gui Help > \gui Documentation > \gui Add.
|
|
|
|
|
|
|
|
|
|
\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
|
|
|
|
|
is detached to an external window. Select \gui {Tools > Options > Help >
|
|
|
|
|
General Settings} and specify settings for displaying context-sensitive help
|
|
|
|
|
in the \gui {On context help} field. To detach the help window, select
|
|
|
|
|
\gui {Always Show Help in External Window}.
|
|
|
|
|
|
2012-05-18 10:23:19 +02:00
|
|
|
\section1 Selecting the Start Page
|
|
|
|
|
|
|
|
|
|
You can select the page to display when you open the \gui Help mode in the
|
|
|
|
|
\gui {Tools > Options > Help > General Settings > On help start} field.
|
|
|
|
|
To display the page and help panes that were open when you exited the mode,
|
|
|
|
|
select the \gui {Show My Tabs from Last Session} option. However, Web pages
|
|
|
|
|
are not opened, because loading them would slow down opening the \gui Help
|
|
|
|
|
mode.
|
|
|
|
|
|
|
|
|
|
To display a particular page, select \gui {Show My Home Page}, and specify
|
|
|
|
|
the page in the \gui {Home Page} field.
|
|
|
|
|
|
|
|
|
|
To display a blank page, select the \gui {Show a Blank Page} option. You can
|
|
|
|
|
also select the \gui {Use Blank Page} button to set a blank page as your
|
|
|
|
|
home page.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
|
|
|
|
\section1 Using Documentation Filters
|
|
|
|
|
|
|
|
|
|
You can filter the documents displayed in the \gui Help mode to find
|
|
|
|
|
relevant information faster. Select from a list of filters in the
|
2012-04-27 10:41:57 +02:00
|
|
|
\gui {Filtered by} field (1). The contents of the \gui Index and \gui Contents
|
2011-09-27 11:53:38 +02:00
|
|
|
pane in the sidebar change accordingly.
|
|
|
|
|
|
|
|
|
|
\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
|
|
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li Select \gui {Tools > Options > Help > Filters > Add}.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li Enter a name for the filter and press \gui {OK}.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li In \gui 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"
|
|
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li Click \gui OK.
|
2011-09-27 11:53:38 +02:00
|
|
|
|
2013-02-06 08:50:23 +01:00
|
|
|
\li In the \gui Help mode, select the filter in the \gui {Filtered by}
|
2011-09-27 11:53:38 +02:00
|
|
|
field to see the filtered documentation in the sidebar.
|
|
|
|
|
|
|
|
|
|
\endlist
|
|
|
|
|
|
|
|
|
|
To modify filters, select a filter in \gui Filters, select the attributes,
|
|
|
|
|
and then click \gui Apply.
|
|
|
|
|
|
|
|
|
|
To remove filters, select them in \gui Filters, and click \gui Remove.
|
|
|
|
|
|
|
|
|
|
*/
|