main.qml: File not found

1,062 views
Skip to first unread message

Jorma Seppänen

unread,
Apr 14, 2011, 7:54:38 AM4/14/11
to android-qt
Hi,

I'm trying to set up the building environment to develop QML apps, I'm
able to compile and launch a simple QML app in Android emulator but
all I'm getting is a blank white screen instead of text that should be
displayed in there. I'm suspecting the problem has something to do
with mail.qml location because in the application window I see the
following message:

W/Qt ( 1271): file:qml/android4/main.qml: File not found

Anyone else seen this ?

Thanks,
Jorma

Tom Fiset

unread,
Apr 14, 2011, 8:16:38 AM4/14/11
to andro...@googlegroups.com, Jorma Seppänen
Hello,

Keep all your qml files in the resource file and refer to them as such: view.setSource(QUrl("qrc:/qml/android4/main.qml")).
That way they will be included in the binary and transfered to the device along with the application.

- Tom Fiset

2011/4/14 Jorma Seppänen <jorma.s...@gmail.com>

Jorma Seppänen

unread,
Apr 14, 2011, 8:58:15 AM4/14/11
to android-qt
Thanks ! I found the line where the problem is, now just need to
figure out the correct path.

BR,
Jorma

On Apr 14, 3:16 pm, Tom Fiset <tmf...@gmail.com> wrote:
> Hello,
>
> Keep all your qml files in the resource file and refer to them as such:
> view.setSource(QUrl("qrc:/qml/android4/main.qml")).
> That way they will be included in the binary and transfered to the device
> along with the application.
>
> - Tom Fiset
>
> 2011/4/14 Jorma Seppänen <jorma.seppa...@gmail.com>

Big Ronaldo

unread,
Apr 19, 2011, 6:47:41 AM4/19/11
to andro...@googlegroups.com, Jorma Seppänen

Hi Seppanen,  how could you get the qml application run in the emulator?

I have tried several times, but failed,  with Ministro installed in the simulator.

 

Another issue is that how to uninstall the Ministro from the simulator.

 

I tried adb uninstall Ministro-1.0.apk , but always failed.

 

Sorry for my newbie questions and thanks a lot!

Br

liuwei

Reply all
Reply to author
Forward
0 new messages