[Interest] QGeoPositionInfo in QML

Bullinger, Julius julius.bullinger at intel.com
Tue Sep 26 11:37:25 CEST 2017

Hi there,

in Qt Location, there's the QGeoPositionInfo class<http://doc.qt.io/qt-5/qgeopositioninfo.html> for storing geo positions.
There's also the Position QML type<http://doc.qt.io/qt-5/qml-qtpositioning-position.html> with a matching interface to do the same in QML.

However, I haven't had success trying to expose a QGeoPosition object as Q_PROPERTY. In QML, the type will be reported as QVariant, and I cannot access any properties.

What is the supposed way to use QGeoPositionInfo in QML? There's QDeclarativePosition, but it's private.

Thanks and best regards,

Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Christian Lamprechter
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170926/5a79b8dd/attachment.html>

More information about the Interest mailing list