[Android-development] Android-development Digest, Vol 18, Issue 6

Jon Mullen jmullen at pasco.com
Thu Jun 5 16:36:49 CEST 2014


Eskil,

We are using Qt Widgets because we have a lot of legacy code written
with them.  We are in the future going to update those widgets to use
Quick and qml, but haven't had the time to do so as of now.

Thanks

-----Original Message-----
From: android-development-bounces+jmullen=pasco.com at qt-project.org
[mailto:android-development-bounces+jmullen=pasco.com at qt-project.org] On
Behalf Of android-development-request at qt-project.org
Sent: Thursday, June 5, 2014 3:00 AM
To: android-development at qt-project.org
Subject: Android-development Digest, Vol 18, Issue 6

Send Android-development mailing list submissions to
	android-development at qt-project.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.qt-project.org/mailman/listinfo/android-development
or, via email, send a message with subject or body 'help' to
	android-development-request at qt-project.org

You can reach the person managing the list at
	android-development-owner at qt-project.org

When replying, please edit your Subject line so it is more specific than
"Re: Contents of Android-development digest..."


Today's Topics:

   1. Re: QQuickWidget crash when running on Android (Paul Olav Tvete)
   2. Re: QQuickWidget crash when running on Android
      (maitai at virtual-winds.org)
   3. Re: QQuickWidget crash when running on Android (Paul Olav Tvete)
   4. Re: QQuickWidget crash when running on Android
      (maitai at virtual-winds.org)
   5. QWidget and Qt Quick (Jon Mullen)
   6. Re: QWidget and Qt Quick (Eskil Abrahamsen Blomfeldt)


----------------------------------------------------------------------

Message: 1
Date: Wed, 4 Jun 2014 12:11:01 +0200
From: Paul Olav Tvete <paul.tvete at digia.com>
Subject: Re: [Android-development] QQuickWidget crash when running on
	Android
To: <maitai at virtual-winds.org>
Cc: Android Development <Android-development at qt-project.org>
Message-ID: <1558032.xgNbqS7sIU at neverwhere>
Content-Type: text/plain; charset="us-ascii"

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


------------------------------

Message: 2
Date: Wed, 04 Jun 2014 13:52:03 +0200
From: maitai at virtual-winds.org
Subject: Re: [Android-development] QQuickWidget crash when running on
	Android
To: Android Development <Android-development at qt-project.org>
Message-ID: <a0d35beb1963f66d1591141df7c12a7d at virtual-winds.org>
Content-Type: text/plain; charset=UTF-8; format=flowed

Le 04-06-2014 12:11, Paul Olav Tvete a ?crit?:
> 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

I tried textureprovider and indeed it works under android. My example is
still not working. I don't think it's a pb of locating the qml file, I
tried both accessing it locally and from a qrc and it finds it as I can
see, just I have this message concerning surface.

I noticed that in textureprovider the application is declared with
QGuiApplication while mine is defined as QApplication (if I declare it
as a QGuiApplication it crashes because of widgets as I understand). 
Could it come from that?

-Philippe



------------------------------

Message: 3
Date: Wed, 4 Jun 2014 14:24:37 +0200
From: Paul Olav Tvete <paul.tvete at digia.com>
Subject: Re: [Android-development] QQuickWidget crash when running on
	Android
To: <android-development at qt-project.org>
Message-ID: <2612430.KIHP6jfb7H at neverwhere>
Content-Type: text/plain; charset="us-ascii"

On Wednesday 04 June 2014 13:52:03 maitai at virtual-winds.org wrote:

> I noticed that in textureprovider the application is declared with 
> QGuiApplication while mine is defined as QApplication (if I declare it

> as a QGuiApplication it crashes because of widgets as I understand).
> Could it come from that?

That should not make a difference, but this is getting into areas that
are less frequently tested, so there could be bugs we don't know about.
Please create a bug report at bugreports.qt-project.org. If you are able
to include a short, self-contained example, that would be very helpful.

- Paul


------------------------------

Message: 4
Date: Wed, 04 Jun 2014 16:02:14 +0200
From: maitai at virtual-winds.org
Subject: Re: [Android-development] QQuickWidget crash when running on
	Android
To: android-development at qt-project.org
Message-ID: <b5721aa8675d7ee62db0bfef7a341518 at virtual-winds.org>
Content-Type: text/plain; charset=UTF-8; format=flowed

Le 04-06-2014 14:24, Paul Olav Tvete a ?crit?:
> On Wednesday 04 June 2014 13:52:03 maitai at virtual-winds.org wrote:
> 
>> I noticed that in textureprovider the application is declared with 
>> QGuiApplication while mine is defined as QApplication (if I declare 
>> it as a QGuiApplication it crashes because of widgets as I
understand).
>> Could it come from that?
> 
> That should not make a difference, but this is getting into areas that

> are less frequently tested, so there could be bugs we don't know 
> about. Please create a bug report at bugreports.qt-project.org. If you

> are able to include a short, self-contained example, that would be 
> very helpful.
> 
> - Paul

Ok, it's here: https://bugreports.qt-project.org/browse/QTBUG-39454

Thanks again
Philippe LELONG


------------------------------

Message: 5
Date: Wed, 4 Jun 2014 12:08:38 -0700
From: "Jon Mullen" <jmullen at pasco.com>
Subject: [Android-development] QWidget and Qt Quick
To: <android-development at qt-project.org>
Message-ID:
	
<68F8192ACC5B8B40873F5C8DFD6325A2040048F9 at p21.roseville.pasco.com>
Content-Type: text/plain; charset="us-ascii"

Hey,

 

With this bug https://bugreports.qt-project.org/browse/QTBUG-39333 and
this https://bugreports.qt-project.org/browse/QTBUG-37907 is it even
possible on android to mix QWidgets and Qt Quick?  My exact use case is
the example in bug  39333.

 

Thanks

-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.qt-project.org/pipermail/android-development/attachments/20
140604/01891847/attachment-0001.html 

------------------------------

Message: 6
Date: Thu, 5 Jun 2014 09:04:46 +0200
From: Eskil Abrahamsen Blomfeldt
	<eskil.abrahamsen-blomfeldt at digia.com>
Subject: Re: [Android-development] QWidget and Qt Quick
To: <android-development at qt-project.org>
Message-ID: <5390168E.8050006 at digia.com>
Content-Type: text/plain; charset="iso-8859-1"

On 06/04/2014 09:08 PM, Jon Mullen wrote:
>
> Hey,
>
> With this bug https://bugreports.qt-project.org/browse/QTBUG-39333 and

> this https://bugreports.qt-project.org/browse/QTBUG-37907 is it even 
> possible on android to mix QWidgets and Qt Quick? My exact use case is

> the example in bug  39333.
>

Currently it's not possible to composite Qt Quick windows on top of Qt
Widgets windows, no. It should be possible to do it the other way
around. Also note that overlapping Qt Quick windows will potentially get
the wrong stacking order since Android does not support stacking more
than two GL-surfaces.

Bogdan wrote an informative blog about it:

     http://www.kdab.com/future-qt-android-looks-bright/

May I ask why you are using Qt Widgets? Is it because you are importing
code from existing projects or does Qt Quick Controls not suit your
needs?

-- Eskil

-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.qt-project.org/pipermail/android-development/attachments/20
140605/d7d469f0/attachment-0001.html 

------------------------------

_______________________________________________
Android-development mailing list
Android-development at qt-project.org
http://lists.qt-project.org/mailman/listinfo/android-development


End of Android-development Digest, Vol 18, Issue 6
**************************************************



More information about the Android-development mailing list