QtPositioning: update weatherinfo example
Update the logic of the queryCity():
- call it immediately afther GPS state change, if the GPS position is
already received (not wait for the next positionUpdate, as it may come
only when coordinates actually change, depending on used plugin).
- check that we still use GPS, when the reply is received (as we
could have already switched to another city).
Also update the QML registration to Qt6 way.
Task-number: QTBUG-89855
Change-Id: I0bb1aa445763a7c9b125008d71220e1e735c1b6f
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>