[unsolved]QML is slow in Android
-
wrote on 28 Mar 2013, 23:56 last edited by
QML is slow in Android 4.1 ARMv5 or ARMv7 of 1.2 ghz.
delay in the design of items in listview.
nothing good result.
is not good. In the windows7 was perfect.I'm doing something wrong?
import QtQuick 1.1
Frame {
id: container
width: 200
height: 250
showBorderImage: true;ListModel { id: animalsModel ListElement { menuText: "menuX"} ListElement { menuText: "menuX"} ListElement { menuText: "menuX"} ListElement { menuText: "menuX"} ListElement { menuText: "menuX"} ListElement { menuText: "menuX"} ListElement { menuText: "menuX"} ListElement { menuText: "menuX"} ListElement { menuText: "menuX"} ListElement { menuText: "menuX"} ListElement { menuText: "menuX"} ListElement { menuText: "menuX"} ListElement { menuText: "menuX"} ListElement { menuText: "menuX"} ListElement { menuText: "menuX"} ListElement { menuText: "menuX"} } ListView { id:listView anchors.fill: parent model: animalsModel delegate: Text { width: listView.width text: menuText } }
}
-
Are you using Qt 5? (it's a good idea to do so -- all the recent work in Android support has been exclusive to Qt 5)
Qt Quick 1 is deprecated, and is only provided for Qt 4 compatibility. Use Qt Quick 2 instead -- you should see improvements
-
wrote on 3 Apr 2013, 00:27 last edited by
I have not found what you need to qt5.
Are you able to install?
-
wrote on 3 Apr 2013, 06:12 last edited by
Instructions how to build: http://qt-project.org/wiki/Qt5ForAndroid
While you can wait for Qt 5.1 release later this month.
http://blog.qt.digia.com/blog/2013/03/13/preview-of-qt-5-for-android/
-
wrote on 3 Apr 2013, 20:30 last edited by
Then I'll wait until the end of the month by qt5.1 version.
thank you.
-
wrote on 8 Feb 2014, 09:19 last edited by
Hi
I experienced the same: my app started in 22 segs using QT 5.2.
The solution was to put all qml files in a resource file. Just see the android extras notification example:
Hope this helps
-
wrote on 10 Feb 2014, 09:10 last edited by
I'm also always putting my qml files into a resource file so just give it a try, maybe it'll fix it.