Qt 5.1 and QtMobility on Android question
I am starting developing Android application with Qt 5.1 (SDK downloaded from qt-project.org).
I want to use Map component from QtMobility.location 1.2, as described in commnets in pro-file, I am added:
@CONFIG += mobility
MOBILITY += location@
And this is my main.qml file: https://github.com/39dotyt/android-qml-qt5-test/blob/master/qml/android-qt5-test2/main.qml
But, when I am trying to launch this application, I am receive error: "Module QtMobility.location not found".
What am I doing wrong?
Also, when I am trying to use WebKit 3.0 and WebView, I am adding:
QT += webkit in pro-file,
but when compiling I am receive "No module found (webkit)" error.
Unfortunately Qt Mobility is not present in Qt 5.
Qt Mobility has been deprecated in Qt 5. It has been split up and merged into other modules. For example, Qt Mobility's "Multimedia Kit" has been merged into the main "Qt Multimedia" module.
The location classes are now in the "Qt Location" module. Unfortunately, that module is not ready for release yet.
Are you trying to compile WebKit for Android or PC?
Thank you. What about Qt Location? Would it be ready in 5.2? When is 5.2 release date?
I am trying to compile WebKit for Android.
Qt Location is targeted to be released with Qt 5.2. In the mean time you can build it yourself and deploy it with your application.
Note there is no positioning backend for Android. If you require positioning you will have to use native Android APIs.
[quote author="amccarthy" date="1378345051"]Note there is no positioning backend for Android. If you require positioning you will have to use native Android APIs.[/quote]
Is it possible to use native Andorid API in Qt 5.1 application?
It's possible to use ANY C++ API in Qt applications :)