summaryrefslogtreecommitdiffstats
path: root/src/doc/src/qtdeviceutilities-index.qdoc
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc/src/qtdeviceutilities-index.qdoc')
-rw-r--r--src/doc/src/qtdeviceutilities-index.qdoc37
1 files changed, 19 insertions, 18 deletions
diff --git a/src/doc/src/qtdeviceutilities-index.qdoc b/src/doc/src/qtdeviceutilities-index.qdoc
index 53627da..3e4467e 100644
--- a/src/doc/src/qtdeviceutilities-index.qdoc
+++ b/src/doc/src/qtdeviceutilities-index.qdoc
@@ -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,36 @@
\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
+ find_package(Qt6 COMPONENTS NetworkSettings REQUIRED)
+ target_link_libraries(mytarget Qt6::NetworkSettings)
+ \endcode
+
+ \section2 Building with qmake
+
+ If you're using qmake to build your application, add this line to your qmake .pro file:
\badcode
- QT += bluetoothsettings displaysettings localdevice localesettings networksettings timedatesettings
+ QT += 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
+ import QtDeviceUtilities.SettingsUI
\endcode
\section1 Examples