[Android-development] QQuickWidget crash when running on Android
Paul Olav Tvete
paul.tvete at digia.com
Wed Jun 4 12:11:01 CEST 2014
On Wednesday 04 June 2014 11:51:19 maitai at virtual-winds.org wrote:
> BTW I cannot use QQuickView on Android instead. I am not getting a crash
> this time, but nothing appears on the screen, and in the console I get:
>
> W/Qt (12585): androidjnimain.cpp:542 (void setSurface(JNIEnv*,
> jobject, jint, jobject, jint, jint)): Can't find surface 2
>
> Is QQuickView unsupported on Android too?
QQuickView works when I test it. However, it can be a bit tricky to deploy the
qml and getting the QQuickView to find it if you are not using the template
project from Qt Creator.
The textureprovider example from Qt 5.3.0 uses QQuickView, and it works on
Android. (It's not visible in the example launcher, though.)
- Paul
More information about the Android-development
mailing list