summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc/src/qtwidgets-index.qdoc
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2020-05-22 16:12:02 +0200
committerKai Koehne <kai.koehne@qt.io>2020-05-31 18:44:57 +0200
commit32a39c4ed1802eab7454d3e6007ff02aa9581b66 (patch)
tree67f26f32d94bca9051a40b03a583a99a913e03eb /src/widgets/doc/src/qtwidgets-index.qdoc
parentc84e9c0700639d2878b8c6caec3f661c4fc4c74d (diff)
Document how to use CMake for Qt Widgets
Task-number: QTBUG-73058 Change-Id: Ida459635e159334a4ef67979c0d28b1553317ea9 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/widgets/doc/src/qtwidgets-index.qdoc')
-rw-r--r--src/widgets/doc/src/qtwidgets-index.qdoc25
1 files changed, 9 insertions, 16 deletions
diff --git a/src/widgets/doc/src/qtwidgets-index.qdoc b/src/widgets/doc/src/qtwidgets-index.qdoc
index db09b57863..d41da1673f 100644
--- a/src/widgets/doc/src/qtwidgets-index.qdoc
+++ b/src/widgets/doc/src/qtwidgets-index.qdoc
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2018 The Qt Company Ltd.
+** Copyright (C) 2020 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the documentation of the Qt Toolkit.
@@ -35,21 +35,6 @@ interfaces
elements to create classic desktop-style user interfaces. See the
\l {User Interfaces} overview for more information on using widgets.
-\section1 Getting Started
-
- To include the definitions of the module's classes, use the
- following directive:
-
- \snippet code/doc_src_qtwidgets.cpp 1
-
- To link against the module, add this line to your \l qmake \c
- .pro file:
-
- \snippet code/doc_src_qtwidgets.pro 0
-
-
-
-
\section1 Widgets
Widgets are the primary elements for creating user interfaces in Qt.
@@ -128,6 +113,14 @@ interfaces
\image graphicsview-items.png
+ \include module-use.qdocinc using qt module
+ \snippet snippets/CMakeLists.txt cmake_use
+
+ See also the \l[QtDoc]{Building with CMake} overview.
+
+ \include module-use.qdocinc building with qmake
+ \snippet snippets/snippets.pro qmake_use
+
\section1 Licenses
The Qt Widgets module is available under commercial licenses from \l{The Qt Company}.