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
Regular Contributor
xhotkey
Posts: 53
Registered: ‎09-19-2012
My Device: 9700
Accepted Solution

error: 'PositioningMethod' has not been declared

 

error: 'PositioningMethod' has not been declared

 

This error occurs after I solved another issue in:

http://supportforums.blackberry.com/t5/Cascades-Development/error-QGeoPositionInfo-does-not-name-a-t...

 

Am I missing some include statement?

Which file do I need to include for PositioningMethod?

BlackBerry Development Advisor (Retired)
gperry
Posts: 138
Registered: ‎05-11-2012
My Device: Developer

Re: error: 'PositioningMethod' has not been declared

Try adding 

 

#include <QtMobilitySubset/QGeoPositionInfoSource>

 

Regards

Graham

Regular Contributor
xhotkey
Posts: 53
Registered: ‎09-19-2012
My Device: 9700

Re: error: 'PositioningMethod' has not been declared

fatal error: QtMobilitySubset/QGeoPositionInfoSource: No such file or directory
Developer
kylefowler
Posts: 526
Registered: ‎05-17-2009
My Device: 9900

Re: error: 'PositioningMethod' has not been declared