summaryrefslogtreecommitdiffstats
path: root/src/sensors/doc/src
diff options
context:
space:
mode:
authorJuha Vuolle <juha.vuolle@qt.io>2023-02-17 17:18:44 +0200
committerJuha Vuolle <juha.vuolle@qt.io>2023-02-22 08:38:04 +0200
commit039ebce49c1f6aaf5ffc79dcfeb924dd8b24e8a0 (patch)
tree15a587468a6bbcb43d29e5705307c8d82af65c85 /src/sensors/doc/src
parent99e44c23abf5d87fbd16a87bd058c776179e8343 (diff)
Add iterating sensors and reading properties as doc snippet
This was previously illustrated by the sensor_explorer example, which is now a manual test. Task-number: QTBUG-110939 Pick-to: 6.5 Change-Id: Id5dceb8bdb5833ebb69818146d163200a93a52e0 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
Diffstat (limited to 'src/sensors/doc/src')
-rw-r--r--src/sensors/doc/src/qtsensors-cpp.qdoc14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/sensors/doc/src/qtsensors-cpp.qdoc b/src/sensors/doc/src/qtsensors-cpp.qdoc
index 2251289c..ce512bf7 100644
--- a/src/sensors/doc/src/qtsensors-cpp.qdoc
+++ b/src/sensors/doc/src/qtsensors-cpp.qdoc
@@ -79,8 +79,18 @@ This code does not require any compile-time links to \l QAccelerometer or
\snippet sensors/start.cpp Starting a sensor
-You can discover all of this information at runtime too. The sensor_explorer example
-shows you information about available sensors.
+You can discover all of this information at runtime too.
+
+\section1 Discovering Sensors And Reading Properties At Runtime
+
+Sometimes it may be that the available sensors are not known at development time.
+It is possible to find out which sensors are available as illustrated below:
+
+\snippet sensors/start.cpp Find sensors
+
+Furthermore it is possible to discover the reading details for these sensors, as illustrated below:
+
+\snippet sensors/start.cpp Print reading properties
\section1 Front End, Back End