diff options
author | Andreas Buhr <andreas.buhr@qt.io> | 2021-08-19 17:10:32 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-08-19 21:40:20 +0000 |
commit | 4b5d07556fcc24911b51d4873dcfeb6f74a5621c (patch) | |
tree | 09ec45e5662ef08f5abc7bf555b3a738416de526 /src | |
parent | 6dc6f81f30405e923a9512eadbf4f23b8d53e264 (diff) |
Replace "Getting Started" by "Using the Module" in QtBluetooth docs
Fixes: QTBUG-94894
Change-Id: I628af802fc589e163dc9087fa7fc3fd7db71caba
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
(cherry picked from commit fdf6b6bd84f3ae853b97946f2e9ea3d7a5c35426)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/bluetooth/doc/snippets/CMakeLists.txt | 4 | ||||
-rw-r--r-- | src/bluetooth/doc/src/bluetooth-index.qdoc | 10 |
2 files changed, 11 insertions, 3 deletions
diff --git a/src/bluetooth/doc/snippets/CMakeLists.txt b/src/bluetooth/doc/snippets/CMakeLists.txt new file mode 100644 index 00000000..757fada8 --- /dev/null +++ b/src/bluetooth/doc/snippets/CMakeLists.txt @@ -0,0 +1,4 @@ +# ![0] +find_package(Qt6 COMPONENTS Bluetooth REQUIRED) +target_link_libraries(mytarget PRIVATE Qt6::Bluetooth) +# ![0] diff --git a/src/bluetooth/doc/src/bluetooth-index.qdoc b/src/bluetooth/doc/src/bluetooth-index.qdoc index 88e645d4..7146e347 100644 --- a/src/bluetooth/doc/src/bluetooth-index.qdoc +++ b/src/bluetooth/doc/src/bluetooth-index.qdoc @@ -92,10 +92,14 @@ Qt Bluetooth supports Bluetooth Low Energy development for client/central role u Further details can be found in the \l {Bluetooth Low Energy Overview}{Bluetooth Low Energy Overview} section. -\section1 Getting Started +\include module-use.qdocinc using qt module +\snippet doc/snippets/CMakeLists.txt 0 -To use the C++ library in your application, add the following configuration -option to your \c .pro file: +See also the \l {Build with CMake} overview. + +\section2 Building with qmake + +Add \c bluetooth to the \c QT variable: \snippet snippets.pro contacts project modification |