[solved] QGeoCoordinate: No such file or directory
-
hi.
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 successfuly. 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!!!
I can't find this problem anywhere I hope someone can help me here.
thanks in advices. -
Hi,
Qt Mobility is for Qt 4 only.
To use Qt Location in Qt 5, you need to wait for "Qt 5.5.":http://blog.qt.io/blog/2015/02/05/licensing-of-new-modules-in-qt-5-5/
-
Please read the documentation: "link":http://doc.qt.io/qt-5/qgeocoordinate.html.
You need this:
@
QT += positioning
@ -
thank you dear sierdzio. :)
I don't know how do I missed that!sorry I'm new here. how can I accept an answer here?
-
[quote author="sierdzio" date="1424250726"]Please read the documentation: "link":http://doc.qt.io/qt-5/qgeocoordinate.html.
You need this:
@
QT += positioning
@
[/quote]Oops! Forgot that QGeo* has been moved to Qt Positioning.[quote author="QHamed" date="1424251053"]sorry I'm new here. how can I accept an answer here?[/quote]Edit your original post and add "[SOLVED]" to the title.