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>
commit70ceffff9c008d467f6ce352b89f13f5cc6f45a6
parentfcb02f59b29dc5013d4b20ceb44ae41c825c0312
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeTue, 23 Mar 2021 10:44:54 +0100