[SailfishDevel] qml PositionSource element gives error: QMetaMethod::invoke: Unable to handle unregistered datatype 'QGeoPositionInfo'

christopher.lamb at thurweb.ch christopher.lamb at thurweb.ch
Sat Jan 11 17:08:25 UTC 2014

Hi all

I have added a QML PositionSource element to the FirstPage of the  
default HelloSailors new project, and call the start() method from  
Component.onCompleted (see code snippet below mail).

When running on the Emulator I get no error:

When running on a real Jolla I get the following error:

QMetaMethod::invoke: Unable to handle unregistered datatype 'QGeoPositionInfo'

I have the GPS enabled, I have used the maps app and agreed to the  
licence there.

On the device I have the following positioning packages installed:

[nemo at localhost ~]$ pkcon search name positioning
Searching by name             [=========================]
Waiting in queue              [=========================]
Starting                      [=========================]
Refreshing software list      [=========================]
Querying                      [=========================]
Installed   	libherepositioning-1.1.2-10.5.1.jolla.armv7hl	Here  
Positioning library
	qt5-qtdeclarative-import-positioning-5.1.0+git21-1.12.1.armv7hl	QtDeclarative  
positioning import
	qt5-qtdeclarative-import-positioning-debuginfo-5.1.0+git21-1.12.1.armv7hl	Debug information for package  
Installed   	qt5-qtpositioning-5.1.0+git21-1.12.1.armv7hl	The  
QtPositioning library
	qt5-qtpositioning-debuginfo-5.1.0+git21-1.12.1.armv7hl	Debug  
information for package qt5-qtpositioning
	qt5-qtpositioning-devel-5.1.0+git21-1.12.1.armv7hl	Development files  
for QtPositioning

So far googling has brought no hints.

Any ideas?



import QtPositioning 5.2

     Component.onCompleted: {
         console.log("turning GPS on")

     PositionSource {
         id: positionSource
         updateInterval: 1000
         active: false

More information about the Devel mailing list