diff options
Diffstat (limited to 'src/doc/src/qtdeviceutilities-index.qdoc')
-rw-r--r-- | src/doc/src/qtdeviceutilities-index.qdoc | 30 |
1 files changed, 11 insertions, 19 deletions
diff --git a/src/doc/src/qtdeviceutilities-index.qdoc b/src/doc/src/qtdeviceutilities-index.qdoc index 53627da..c7e0d96 100644 --- a/src/doc/src/qtdeviceutilities-index.qdoc +++ b/src/doc/src/qtdeviceutilities-index.qdoc @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2019 The Qt Company Ltd. +** Copyright (C) 2021 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the documentation of the Qt Toolkit. @@ -31,7 +31,7 @@ \brief Provides functionality for controlling settings in embedded applications. \QtDU provides functionality that is useful for controlling settings in embedded - applications. The functionality in \QtDU is divided into the following C++ modules: + applications. \QtDU provides the following C++ modules: \annotatedlist qtdevice-utilities-cpp-modules @@ -41,35 +41,27 @@ \section1 Getting Started - To include the definitions of the module's classes, use the following - directives: + To include the definitions of the module's class, use the following + directive: - \code - #include <QtBluetoothSettings> - #include <QtDisplaySettings> - #include <QtLocalDevice> - #include <QtLocaleSettings> + \badcode #include <QtNetworkSettings> - #include <QtTimeDateSettings> \endcode - To link against the modules, add this line to your qmake .pro file: + \section2 Building with CMake + + If you're using CMake to build your application, add the following lines to your CMakeLists.txt file: \badcode - QT += bluetoothsettings displaysettings localdevice localesettings networksettings timedatesettings + find_package(Qt6 COMPONENTS NetworkSettings REQUIRED) + target_link_libraries(mytarget Qt6::NetworkSettings) \endcode To import the QML types into your application, use the following import statements in your .qml file: \code - import QtDeviceUtilities.BluetoothSettings 1.0 - import QtDeviceUtilities.DisplaySettings 1.0 - import QtDeviceUtilities.LocalDeviceSettings 1.0 - import QtDeviceUtilities.LocaleSettings 1.0 - import QtDeviceUtilities.NetworkSettings 1.0 - import QtDeviceUtilities.SettingsUI 1.0 - import QtDeviceUtilities.TimeDateSettings 1.0 + import QtDeviceUtilities.NetworkSettings \endcode \section1 Examples |