The documentation for reading refers to QSensor::reading and it states
that readings are not available immediately after start() is called.
Instead, one should wait for the readingChanged signal. Until then,
reading is documented to be null, so just check for that.
This fixes 'Cannot read property x of null' warnings.
Fixes: QTBUG-140395
Fixes: QTBUG-140385
Change-Id: Ibb36e1d8387628eea333cb6d0537dea25f3980b6
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
(cherry picked from commit d19a1e9b51)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add tabs to show the images. This will make the example more compact.
* Re-arrange and add sections to adhere to the template.
Fixes: QTBUG-137969
Pick-to: 6.9 6.8 6.5
Change-Id: I01dd3f2ab9de33afee59925aae9a557ba829fc25
Reviewed-by: Safiyyah Moosa <safiyyah.moosa@qt.io>
Reviewed-by: Jerome Pasion <jerome.pasion@qt.io>
(cherry picked from commit 8d1d905513)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit adds information on how to install the debug libraries in
addition to release libraries when using -debug-and-release
configuration option on Windows.
Fixes: QTBUG-138795
Fixes: QTBUG-115206
Change-Id: I3c1c0bd1c86988285af2c3cba74add01ca9dfefb
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit af2238322d)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
THe code introducing synchronizer created some unqualified access
warnings. Fix this by fully qualifying the properties.
Pick-to: 6.10.0
Fixes: QTBUG-140383
Change-Id: I9784a1d23020de9bc2231717a9189098df91ab65
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
(cherry picked from commit b2f6bc9f24)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Change title from "Thread Support in Qt" to "Multi-threading in Qt"
to use more modern and precise terminology. Add target directive to
preserve possible existing links and update all cross-references
across the codebase.
Task-number: QTBUG-140178
Pick-to: 6.10.0 6.9 6.8
Change-Id: I43ee66b3e036d8a0682c6dbb59ee52636d26b201
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
(cherry picked from commit fe10a6a260)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Fix the unqalified access warning by qualifying the lookup, and remove
an unused import. With that, the project is warning free, and we can
configure qmllint via its ini file to complain loudly if new warnings
are introduced.
Fixes: QTBUG-138178
Change-Id: I785ac8dec15b99bce2306d5f1f754a2f55dcc334
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
(cherry picked from commit 76406193f1)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
csv-parser didn't get the -pthread flag. Now, we add the -pthread flag if this is compiled with multithreaded wasm.
Fixes: QTBUG-139340
Pick-to: 6.10.0
Change-Id: I0f9cca453bb7f13b8e3e005be5c55aa586cd2c88
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Reviewed-by: Johanna Äijälä <johanna.aijala@qt.io>
(cherry picked from commit 44f6242058)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-standardized xr_physicsbase_teleportation top-level CMake
-Standardized Android manifest file, this fixed a crash due to a lib
name not being up to date, and then not being found.
Pick-to: 6.10.0
Change-Id: Ib36d3790e5061b14a27f7fef7c24f5e2040ddb67
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
(cherry picked from commit 139629b616)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Add Qt icon and proper name for Qt Jenny example so it can be more
easily found from device.
Task-number: QTBUG-140051
Pick-to: 6.10.0 6.9
Change-Id: Iaf1ca401f59cfd8d6a30052cd961b1a2fc53d8c4
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
(cherry picked from commit abd7fabd91)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Add accessibility annotations to make the screen readers
read out the content correctly. For instance, VoiceOver
on macOS reads "x²" as "x two", where it should be "x
squared". Also give a more descriptive accessible name to
the somewhat unfortunately named "BS" button.
The Text items in the Display also need Accessible.name,
since Text is a low-level item which do not provide
a11y content by itself.
Fix issue with handling the Press action: the a11y system
does not call the mouse "press" or "release" signals in response
to this action, use "clicked" instead.
Change-Id: I9c4cccf1b60c55320a149f97c86edea92a47bbb5
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
Reviewed-by: Konsta Alajärvi <konsta.alajarvi@qt.io>
Reviewed-by: Rami Potinkara <rami.potinkara@qt.io>
(cherry picked from commit 9f2de0e371)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Set root window background correctly and add safe margins to
QML Window when needed so that demo apps look good also on
edge-to-edge mode.
Ideally, we could also set Qt.ExpandedClientAreaHint window
flag, but since Android doesn't handle status bar coloring
well yet, it's better to leave it until that's supported.
Pick-to: 6.9
Change-Id: I2bf55aaa990909dea340c195056afcd511960395
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
(cherry picked from commit 5a5d0e5020)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Up to date external links to online Java documentation are now managed
in the same repo that contains the class sources.
Task-number: QTBUG-127747
Pick-to: 6.9 6.8
Change-Id: I246f1af8a2752bb3c764f7e97a8719a2d1bdec8a
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
(cherry picked from commit 32368f0a57)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Remove squish-tested-example.qdocinc from qdoc module and add it to
qtbase module for global accessibility in all submodules.
This is going to be a follow up for the patch adding the file
to qtbase.
Task-number: QTBUG-139338
Task-number: QTBUG-138432
Change-Id: I91b7fb97f89ad8fd7feb31b5082a83cde232dece
Reviewed-by: Rami Potinkara <rami.potinkara@qt.io>
Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
(cherry picked from commit 137a42a53f)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
usealttextastitle was introduced to QDoc in 6.9, not 6.10.
Change-Id: Ib738a9622bc6f140c6de7f5e14c62dbc9ff35ad3
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
(cherry picked from commit aa9d8cd76c)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
The signals and slots syntax documentation previously contained detailed
examples for connecting to overloaded functions, but comprehensive
overload connection guidance has now been moved to the main signals and
slots documentation in qtbase. This created content duplication and
potential maintenance issues across the documentation set.
This change removes the duplicate detailed examples and replaces them
with a clear reference to the comprehensive documentation. The existing
snippet demonstrating basic overload syntax remains, but the extensive
explanatory content now defers to the authoritative source in qtbase.
This eliminates redundancy while maintaining the document's focus on
syntax differences between connection approaches.
The change also removes references to older C++ standards since Qt 6
requires C++17, ensuring the documentation reflects current requirements.
Task-number: QTBUG-89600
Pick-to: 6.9 6.8
Change-Id: I35c25f6969086cd872343ab13a7577e3ba460115
Reviewed-by: Sze Howe Koh <szehowe.koh@gmail.com>
(cherry picked from commit 66fc052754)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This patch updates the software information of the
Android RTA Pixel 8 device to latest or current one.
Pick-to: 6.9 6.8 6.5
Change-Id: Ia509e47413bb9458a40e2132cdd0b906a4d3295c
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
(cherry picked from commit 9de6ba7507)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
ui.qml files do not support referencing the top-level `parent`, and
qmllint produces a warning when this is done.
Thus, remove the line that refers to `parent` from the ui.qml file.
In this particular case the only usage site of the type defined by the
relevant .ui.qml file sets the relevant property on the spot, such that
there should be no change in semantic with the removal.
Task-number: QTBUG-138170
Change-Id: I68f9acc7c853afc1a62630a127bf1fa6eb891ec9
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
(cherry picked from commit d0b655dda8)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
The example is currently in a state where qmllint produces almost no
warnings, and should generally be kept in such a state.
Thus, add a configuration file that sets the warning limit to "0", such
that running the all_qmllint target for the example will fail if any
warning is produced, with the additional strictness hopefully helping
keeping the example almost warning-free.
Some warnings were disabled, instead of fixed, due to a compatibility
issue with Qt Design Studio, but should be fixed if that incompatibility
is resolved.
Fixes: QTBUG-138170
Change-Id: Ibbbf17892f6be1b7b549718df16036d6a57c3022
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
(cherry picked from commit 6749ea650e)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
The dot texture is never used but dot1
Pick-to: 6.9 6.8
Change-Id: I269779a1cfe335f3b061ab00a3e7bb3a2ce2e0c7
Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
(cherry picked from commit d7052eff47)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
The example uses a custom QML type, `State_Idle`, to handle a series of
lists and their selections.
In particular, `State_Idle` is used to change the state of a string
property of each of those lists that represent the current selection.
This change is done by accessing a `list` element that is supposed to be
implicitly available and that is currently being defined inline when the
relevant list elements are created.
qmllint cannot know that at runtime `list` will be an available property
and thus produces a warning on access.
Generally, this type of accesses is fixed by explicitly passing the
dependency to the relevant element, that can then access it in a way
that qmllint can keep track of.
The subpart of those types that is modified by `State_Idle` is a string.
Passing a string downward would disallow `State_Idle` from changing the
original value, as the binding would only go one-way.
Furthermore, `State_Idle` is used for interacting with multiple types,
for example `ListModels` and `ListMaterial`.
All of those elements don't have a common shape that is known to have
the necessary property available, such that there is no single type that
can be used as the target of the dependency in a way that allows qmllint
to keep track of the accesses.
To help with allowing qmllint to have a defined shape to refer to, a new
custom QML type, `ListSelection` was added, whose only purpose is to
define a shape that contains the relevant property.
`State_Idle` was modified to work through an instance of that type,
providing a required property so that a reference to the instance can be
passed over and manipulated as required, with a shape that is known to
qmllint.
An instance of the new type was added as the root element of each list type and a
reference to the root element was passed over to the various `State_Idle`
instances that interact with it.
The inline definition of the various `list` property where removed from
the various instances of the relevant list types.
Task-number: QTBUG-138170
Change-Id: I294a5c0f9f7175dd3706419d6fa02e7b3ed3cdb7
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
(cherry picked from commit 2d42defdca)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This is a directive, not an inconvenience.
Change-Id: I9129cb81adaf54c998a58886b37c9a5918fe2024
Reviewed-by: Safiyyah Moosa <safiyyah.moosa@qt.io>
(cherry picked from commit 7b26c96c49)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Add documentation in `Qt Configure Options` for how to enable this
feature and where the configure summary and options files end up
in the installation.
Fixes: QTBUG-137052
Change-Id: I331cffff62bd86f6946eb77e81a92a0ebe496b81
Reviewed-by: Andreas Eliasson <andreas.eliasson@qt.io>
(cherry picked from commit 8621604e67)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
The text was too low and hard to read.
I moved into the middle of the view and further away from the
user's head.
Pick-to: 6.9 6.8
Change-Id: I393d7ce6a86c510101af56e72cf8090df162af22
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
(cherry picked from commit 50e7e39bca)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit fixes the component name for Linux installation
Fixes: QTBUG-136065
Pick-to: 6.9 6.8
Change-Id: I7e8dea1b6e6c324ed45529a9e8687b4d55684164
Reviewed-by: Teemu Jokitulppo <teemu.jokitulppo@qt.io>
Reviewed-by: Alexei Cazacov <alexei.cazacov@qt.io>
(cherry picked from commit 7b63b3a596)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Restructure the content to make it adhere to the application examples
template. Also, add image alt text and add the appropriate section
headings.
Fixes: QTBUG-137895
Pick-to: 6.9 6.8 6.5
Change-Id: Ie2b804bc286c9aba900e58d382bbc225fd0cca8a
Reviewed-by: Safiyyah Moosa <safiyyah.moosa@qt.io>
Reviewed-by: Jerome Pasion <jerome.pasion@qt.io>
(cherry picked from commit 6fd75ca714)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>