Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Qt Mobility 1.2 download and examples
FireTec last edited by
Hello all! I am new to Qt and am need of assistance. I am creating a project to plot multiple GPS coordinates on maps. I found references to Qt Mobility but am unable to download the files that the guide required. I am under the impression that this service was cancelled and was wondering if anyone had these files and maybe even examples of multiple GPS coordinates plotted at once. The examples are less necessary as I have prior experience in C and C++ but more on the embedded system side. Any help would be greatly appreciated. Apologies if this is the wrong area for this post but I felt that since this is a desktop widget that this was the best forum to ask for help. Thanks again!
Hi, and welcome to the Qt Dev Net!
Back in Qt 4, we had the "main" Qt modules for desktop and embedded Linux. We also had Qt Mobility, which was a set of modules specifically for mobile phones.
In Qt 5, the modules in Qt Mobility were merged into the "main" Qt modules (not all of it has been merged though; some parts are still under development and not released yet). For GPS information, see the "Qt Positioning":http://doc.qt.io/qt-5/qtpositioning-index.html module.
FireTec last edited by
Thank you for your prompt response and thank you for the help! That page helped greatly in moving my code along.
Now that the mobility issue is solved, and some of the libraries I was looking for have been added, I have come across a few libraries that I do not seem to be able to use. I receive the error of no directory. I have checked on Qt and they are not obsolete libraries.
The libraries in question are QGeoServiceProvider and QGeoMappingManager. The service provider library asks for QT =+ location to be added to the .pro file which I followed. If this is added however, I receive the error: Project ERROR: Unknown module(s) in QT: location. Any thoughts on this problem? Thank you again for your time and knowledge.
You're most welcome :)
[quote author="FireTec" date="1420762946"]The libraries in question are QGeoServiceProvider and QGeoMappingManager. The service provider library asks for QT =+ location to be added to the .pro file which I followed. If this is added however, I receive the error: Project ERROR: Unknown module(s) in QT: location.[/quote]Hmm... those classes aren't released as part of Qt 5 yet, unfortunately.
Qt Mobility had a module called "Qt Location", which included all GPS and mapping classes. In Qt 5, this module was split into two modules: "Qt Positioning" for GPS info, and "Qt Location" for mapping.
Qt Positioning has been released, but Qt Location hasn't yet because its quality is incomplete. Read through these threads to get a better understanding of the current state of affairs (Alexander Blasche is the guy in charge of Qt Location and Qt Positioning):
According to Alex, Qt Location is currently usable but you need to use QML, not C++. That means QGeoServiceProvider and QGeoMappingManager won't be available, and you'll need to learn QML at this point (or wait until the C++ API is implemented).
If you want to proceed, download the source code and build the module yourself. Select the following in your Qt 5.4 installer to get the source code:
@Qt -> Qt 5.4 -> Source Components -> Add-Ons -> qtlocation@
Then, use Qt Creator to open qtlocation.pro (which you just downloaded), and click "Build".
Note: I have not tried this myself, so I don't know how it will turn out.
All the best with your project