summaryrefslogtreecommitdiffstats
path: root/src/sensorsquick
diff options
context:
space:
mode:
authorJuha Vuolle <juha.vuolle@insta.fi>2021-06-18 14:39:03 +0300
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-06-29 08:46:42 +0000
commitcb4adddcd0e322c527b307dbf6e353fcf1d69a6a (patch)
tree5360ac2401e1517698bf14bfc4eb80d81fcd3681 /src/sensorsquick
parentb7cf94877a9e232e65f699948e488e4f88850d51 (diff)
QtSensors Qt6 documentation base update
The QtSensors module shall be released in 6.2 for the first time in Qt 6 series. This commit updates the basic things of the documentation accordingly. Documentation for sensor support, platform support, and examples shall be updated with followup commits. [ChangeLog][sensorfw] sensorfw removed from docs for now Task-number: QTBUG-92512 Change-Id: I7c5e447766109bf9da8ab3cc56fe22ec42dbd875 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Lorn Potter <lorn.potter@gmail.com> (cherry picked from commit 175a5ab34240c723ad2c2a2d60ad38a01ed6d218) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/sensorsquick')
-rw-r--r--src/sensorsquick/qmlsensorglobal.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/sensorsquick/qmlsensorglobal.cpp b/src/sensorsquick/qmlsensorglobal.cpp
index eaa83342..0bf67d4e 100644
--- a/src/sensorsquick/qmlsensorglobal.cpp
+++ b/src/sensorsquick/qmlsensorglobal.cpp
@@ -51,11 +51,12 @@ QT_BEGIN_NAMESPACE
The QmlSensors singleton provides the module API.
- This element cannot be directly created. It can only be accessed via a namespace import.
+ This element cannot be directly created, but its functionality
+ can be accessed as a QML singleton as illustrated below:
\code
- import QtSensors 5.11
- import QtSensors 5.11 as Sensors
+ import QtSensors
+ import QtSensors as Sensors
...
Component.onCompleted: {
var types = Sensors.QmlSensors.sensorTypes();