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
Contributor
MichalKozminski
Posts: 36
Registered: ‎07-05-2012
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

 

 

Please use plain text.
Developer
peter_strange
Posts: 19,510
Registered: ‎07-14-2008

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)

Please use plain text.