Qt Documentation
Go to file
Paul Wicking f7f5859f46 Add changes file for Qt 5.12.1
+ 4d57f6bc47 QtQuick: Fix & clean up alarms.pro
+ 113e24a5aa Doc: Add brief section to "Qt for QNX", "Qt for VxWorks"
+ ec6883bd7c Doc: Remove broken link from iOS documentation
+ 9c8b608839 Bump version
+ 9aec0395d2 Make example code in Qt documentation also available under BSD-3-clause
+ b6a5aff9b7 Improve the exception safety code sample
+ 144395f0aa Fix the usage of the ret variable in the exception safety code sample
+ 66bddfb570 Add changes file for Qt 5.11.3
+ 4db2e07f97 Doc: Document Qt Quick WebGL plugin license
+ a58fa967f2 Doc: Remove obsolete build instructions for Qt Quick WebGL plugin
+ 0a47462880 winrt: Update winrtrunner's help output
+ 8f7c4db0ad Clarify target platforms of winrt port
+ c162c4b5a5 windows: Fix origin of environment setup script
+ 9d88932795 Doc: Replace Controls 1 and MouseArea references
+ 3361d00443 Doc: Change the depends order in the doc config
+ ec479952c0 remove references to bundled xkbcommon
+ 10b3f2c109 macOS: improve quit menu item documentation
+ bfe5411391 Bump version

Change-Id: I63e1c88a718757a55904c5a0f4358aa651e5a40c
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
2019-01-10 05:13:39 +00:00
dist Add changes file for Qt 5.12.1 2019-01-10 05:13:39 +00:00
doc macOS: improve quit menu item documentation 2019-01-03 11:37:50 +00:00
examples QtQuick: Fix & clean up alarms.pro 2018-11-06 07:51:55 +00:00
tests Duplicate tests that use examples from qtdeclarative 2018-07-16 13:12:58 +00:00
.gitattributes Update the git-archive export options 2012-09-03 19:51:51 +02:00
.gitignore Doc: Remove qtdemo example 2014-09-17 12:38:32 +02:00
.qmake.conf Bump version 2019-01-07 09:29:19 +02:00
.tag Update the git-archive export options 2012-09-03 19:51:51 +02:00
LICENSE.FDL Add license files mandated by (L)GPL. 2013-02-15 00:04:35 +01:00
README Adjust wiki links to the new redirect 2015-03-03 12:12:03 +00:00
qtdoc.pro Build demo examples directory 2018-06-29 09:46:23 +00:00
sync.profile remove dependencies from sync.profile 2016-11-14 12:18:33 +00:00

README

To Generate Qt Documentation:

qtdoc contains the main Qt Reference Documentation, which includes
overviews, Qt topics, and examples not specific to any Qt module.The
configuration files are located in qtdoc/doc/config and the articles in
qtdoc/doc/src. Note that QDoc is located in qtbase.

The instructions in this file assumes that the prerequisite binaries are
compiled and in the $PATH variable.

Prerequisites:
    * qtbase exists
    * "qmake" and "qdoc" compiled and installed
    * other Qt repositories exist as needed

The Qt Reference Documentation were written with links to the released modules
for Qt 5. If the modules and repositories do not exist, then the resulting HTML
files will contain broken links.

There are two ways to build the documentation. One way is to compile the
documentation using QDoc and the configuration file (qdocconf) file. The other
way is to use qmake by running "make docs".

Section 1 Building the qdocconf File

    This method is useful for building separate projects without any
    dependencies to other projects.

    To build using the qdocconf file, run the "qdoc" binary and pass the
    qdocconf file as a parameter. "qdoc" is found in qtbase repository. A
    mandatory "outputdir" must be specified.

        $> qdoc doc/config/qtdoc.qdocconf -outputdir html

    Note that QDoc will delete the contents of the "html" output directory.

Section 2 Building using make

    QMake uses the QT_INSTALL_DOCS variable to determine where the documentation
    for Qt 5 are installed. This method is useful for linking to other Qt
    modules.

    To see where the documentation will be installed, run:
    $> qmake -query

    To generate the documentation, run:

    $> cd qtdoc  #or whichever repository's root
    $> qmake
    $> make docs

    "make docs" also works in the main Qt 5 repository. Running the command
    there will generate the documentation for Qt 5 and install them to the
    path set to the QT_INSTALL_DOCS variable.

Section 3 Building Qt Documentation

    To build the Qt module documentation along with the Qt Reference Documentation,
    run the following:

    $> cd qt5  #the main qt5.git directory
    $> make qmake_all  #creates Makefiles for each repository
    $> make docs

    To generate only HTML files, run "make html_docs" instead of "make docs"

Section 4 Packaging the Documentation

    To package the documentation for Qt Assistant, the HTML files must be
    compiled into a QCH file (.qch).

    Required binaries:
    * assistant - found in qttools
    * qhelpgenerator - found in qttools

    To compile thq qch file for each module, first enter the output directory
    which contains the .qhp file and generate the QCH file.

    $> cd qtbase/doc/qtdoc              #the default path for QT_INSTALL_DOCS for qtdoc
    $> qhelpgenerator qtdoc.qhp         #creates the QCH file called qtdoc.qch

    Alternatively, modules have a "qch_docs" target:
    $> cd qtbase
    $> make qch_docs #builds the QCH files for modules in qtbase

    The QCH file can then be loaded in Qt Assistant or Qt Creator. For Qt
    Assistant, the QCH file may be registered to automatically load it.

    $> assistant -register qtdoc.qch    #to automatically load the documentation

Section 5 More Information

For more information about Qt 5's documentation, refer to the Qt Project wiki:
http://wiki.qt.io/Qt5DocumentationProject