summaryrefslogtreecommitdiffstats
path: root/src/networksettings
diff options
context:
space:
mode:
authorLassi Lehikoinen <lassi.lehikoinen@qt.io>2020-12-23 13:03:00 +0200
committerLassi Lehikoinen <lassi.lehikoinen@qt.io>2020-12-29 08:16:02 +0200
commit77987a087507ecccb616a1af158190ffd3082a02 (patch)
treeda550cd08c5a979595548f67409359a67c4d1730 /src/networksettings
parenta1df8e45166f15ed77e2ef8b3ad6757299662dc7 (diff)
Update documentation regarding Qt 6 changes
Task-number: QTBUG-88332 Change-Id: Ie6b9310e73b5515c97c892fbc27cd89009011c98 Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
Diffstat (limited to 'src/networksettings')
-rw-r--r--src/networksettings/qnetworksettings.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/networksettings/qnetworksettings.cpp b/src/networksettings/qnetworksettings.cpp
index e4ddbad..79ec2d4 100644
--- a/src/networksettings/qnetworksettings.cpp
+++ b/src/networksettings/qnetworksettings.cpp
@@ -44,8 +44,15 @@ QT_BEGIN_NAMESPACE
#include <QtNetworkSettings>
\endcode
- To link against the corresponding C++ libraries, add the following to your
- qmake project file:
+ To link against the corresponding C++ libraries when using CMake to build you application,
+ add the following to your CMakeLists.txt file:
+
+ \code
+ find_package(Qt6 COMPONENTS NetworkSettings REQUIRED)
+ target_link_libraries(mytarget Qt6::NetworkSettings)
+ \endcode
+
+ Or if you are using qmake to build your application, add the following line to your qmake .pro project file:
\code
QT += networksettings