Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Highlighted
Contributor
Posts: 36
Registered: ‎07-05-2012
My Device: 9900 & dev alpha
My Carrier: Play - P4

Starting with localization

Hi,

I I just started to read about localization in bb10. So I try to initialize it by:

QGeoPositionInfoSource *src; 
src=QGeoPositionInfoSource::createDefaultSource(this);

 

but I get error:

 

undefined reference to 
 `QtMobilitySubset::QGeoPositionInfoSource::createDefaultSource(QObject*)'

What is wrong with this code in documentation there is method createDefaultSource

 

 

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Starting with localization

I'm just learning C++ myself so this is probably completely wrong, but to match

(QObject*)

as a parameter, don't you need to code

(&this)