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

christopher.lamb at thurweb.ch christopher.lamb at thurweb.ch
Mon Jan 13 06:55:32 UTC 2014

HI Aaron

Thanks for this. I am glad to hear a fix is underway.

I was about to play around with solution like the one you suggest  
until others in this mailing list provided me with demo code that  
indicates that despite the error, the PositionSource element seems to  

If so, is this actually a "ghost error" that we can ignore for the moment?



Zitat von "Aaron McCarthy" <aaron.mccarthy at jolla.com>:

> Hi,
> On Sat, 11 Jan 2014 18:08:25 christopher.lamb at thurweb.ch wrote:
>> 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.
> This is a problem with the Qt Geoclue positioning plugin, it fails  
> to register
> the data type. I have submitted a fix upstream [1]. In the meantime you can
> work around it in you application by calling
> qRegisterMetaType<QGeoPositionInfo>();
> prior to creating a position info source.
> [1] https://codereview.qt-project.org/75256
> Cheers,
> --
> Aaron McCarthy
> _______________________________________________
> SailfishOS.org Devel mailing list

More information about the Devel mailing list