White screen for C++/QML application

1,480 views
Skip to first unread message

Nikos

unread,
Mar 4, 2011, 6:25:01 AM3/4/11
to android-qt
Hi there,

I run my Qml application and when the time to show comes, a white
screen is shown. Anybody met this situation again?

Krzysztof Klinikowski

unread,
Mar 4, 2011, 6:41:46 AM3/4/11
to andro...@googlegroups.com
Works for me, at least on Sergey branch ;)

--

Best regards,
Krzysztof Klinikowski

Geoff

unread,
Mar 4, 2011, 12:07:52 PM3/4/11
to android-qt
Hi,

I have exactly the same problem.
It seems that the app can't find the .qml files on launching.
--
Geoff

Jonny

unread,
Mar 4, 2011, 5:40:40 PM3/4/11
to android-qt
Did you add QDeclaritive to OtherFiles->android->res->values in your
app dir?
See this video at minute 3.49;
http://labs.qt.nokia.com/2011/02/28/necessitas/
Cheers,
Jon

Alessandro Portale

unread,
Mar 5, 2011, 3:33:13 PM3/5/11
to android-qt
I assume that you used the Qt Quick App wizard of Qt Creator in order
to create your application. The resulting code of that wizard relies
on qmake's "DEPLOYMENT" feature which right now is not supported by
Necessitas. (I am clueless whether Android allows raw file deployment
at all).

However, your white screen may occur because the files are not on the
device.

The qml demos from the video use .qrc files instead, which compile the
qml files into the main binary. See http://chaos.troll.no/~aportale/android-qt-demos/android-qt-demos.zip

Hope that helps,
Alessandro

Nikos

unread,
Mar 5, 2011, 4:58:19 PM3/5/11
to andro...@googlegroups.com
Thanks for the help, it is working ! Embedding external , raw files
into the deployment package is an essential think, and I suppose that
it is supported by Android.
I know that there is a thing called Assets.. I will try to find out
more about this and post again.

---------- Forwarded message ----------
From: Alessandro Portale <alessandro.port...@googlemail.com>
Date: Mar 5, 10:33 pm
Subject: White screen for C++/QML application
To: android-qt


I assume that you used the Qt Quick App wizard of Qt Creator in order
to create your application. The resulting code of that wizard relies
on qmake's "DEPLOYMENT" feature which right now is not supported by
Necessitas. (I am clueless whether Android allows raw file deployment
at all).

However, your white screen may occur because the files are not on the
device.

The qml demos from the video use .qrc files instead, which compile the

qml files into the main binary. Seehttp://chaos.troll.no/~aportale/android-qt-demos/android-qt-demos.zip

armandcyrille.t...@esprit.tn

unread,
Oct 5, 2018, 11:44:03 PM10/5/18
to android-qt
please nikos I did not understand how you did to solve your problem. I select the links of the group but I can not access anything. I really need help because since 8 pm I am trying to solve my problem of white display but I can not.

armandcyrille.t...@esprit.tn

unread,
Oct 5, 2018, 11:44:43 PM10/5/18
to android-qt
please.  
I do not understand anything

Le vendredi 4 mars 2011 11:25:01 UTC, Nikos a écrit :

"Lutor, Zoltán"

unread,
Oct 6, 2018, 2:31:19 AM10/6/18
to andro...@googlegroups.com
Hi,

Could you, please, be a little bit more specific?

Platform, sample from yor code, etc...

Otherwise it is impossible to give any hints...

Br,

Zoltan
> --
> You received this message because you are subscribed to the Google Groups "android-qt" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to android-qt+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

TAKOUGANG NZEUKOU ARMAND CYRILLE

unread,
Oct 6, 2018, 11:46:09 AM10/6/18
to andro...@googlegroups.com
hi,
I thank you first for answering me

--
TAKOUGANG NZEUKOU ARMAND CYRILLE

TAKOUGANG NZEUKOU ARMAND CYRILLE

unread,
Oct 6, 2018, 11:46:39 AM10/6/18
to andro...@googlegroups.com
this is my code

import QtQuick 2.9
import QtQuick.Controls 2.2

ApplicationWindow {
    visible: true
    width: 640
    height: 480
    title: qsTr("Scroll")
Rectangle{
    width:500
    height:400
    color:"red"
}

    ScrollView {
        anchors.fill: parent

        ListView {
            width: parent.width
            model: 20
            delegate: ItemDelegate {
                text: "Item " + (index + 1)
                width: parent.width
            }
        }
    }
}

TAKOUGANG NZEUKOU ARMAND CYRILLE

unread,
Oct 6, 2018, 11:48:13 AM10/6/18
to andro...@googlegroups.com

this code compiles well, but after execution a very white window appears and I do not understand why while I created a rectangle inside

TAKOUGANG NZEUKOU ARMAND CYRILLE

unread,
Oct 6, 2018, 11:51:23 AM10/6/18
to andro...@googlegroups.com

I have this problem with all qml projects so qt puts at my disposal .


please excuse me for the fault because my current language is French 

Zoltán Lutor

unread,
Oct 6, 2018, 2:32:23 PM10/6/18
to android-qt
I've tried your code in Android emulator and it works fine... :(

TAKOUGANG NZEUKOU ARMAND CYRILLE

unread,
Oct 6, 2018, 2:35:41 PM10/6/18
to andro...@googlegroups.com

I want to know why it does not work at home  

"Lutor, Zoltán"

unread,
Oct 6, 2018, 3:13:42 PM10/6/18
to andro...@googlegroups.com
No real idea... :(

What is the deployment platform? Emulator or real device? ARM, x86?

Any error message during building/packaging? What is in the .pro file?

Zoktan

On Saturday, October 6, 2018, 'TAKOUGANG NZEUKOU ARMAND CYRILLE' via android-qt wrote:
> I want to know why it does not work at home
>
Reply all
Reply to author
Forward
0 new messages