I’m trying to use QtLocation but I can’t! I don’t realise why! I’m using qt5.3.2 with ubuntu 14.04. it’s strange because I added this lines to my .pro file:
QT += network
CONFIG += mobility
MOBILITY += location
and it’s qmake successfully. nad I checked my qt5 libraries and I can find this library but still I can’t use it!
it’s not recognize my includes and print errors like this:
QGeoCoordinate: No such file or directory
and int’s not the only include that it’s not recognize. generally it’s not recognize QGeo types!
TL;DR: add this to your .pro file:
QT += positioning
The QGeo* classes (and QNmeaPositionInfoSource) are bundled in their own library, which need to be referenced as above.
Apart from that, the "MOBILITY" and "CONFIG" statements look like some relic from Qt4, the line above should be enough.