Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [unsolved]QML is slow in Android

[unsolved]QML is slow in Android

Scheduled Pinned Locked Moved QML and Qt Quick
7 Posts 5 Posters 4.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    flaviomarcio
    wrote on last edited by
    #1

    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
            }
    }
    

    }

    Flavio Portela

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      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

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • F Offline
        F Offline
        flaviomarcio
        wrote on last edited by
        #3

        I have not found what you need to qt5.

        Are you able to install?

        Flavio Portela

        1 Reply Last reply
        0
        • D Offline
          D Offline
          daliusd
          wrote on last edited by
          #4

          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/

          1 Reply Last reply
          0
          • F Offline
            F Offline
            flaviomarcio
            wrote on last edited by
            #5

            Then I'll wait until the end of the month by qt5.1 version.

            thank you.

            Flavio Portela

            1 Reply Last reply
            0
            • D Offline
              D Offline
              deuteros
              wrote on last edited by
              #6

              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:

              https://qt.gitorious.org/qt/qtandroidextras/source/09c0570ce76576074fa0dd98276d959fe0287317:examples/androidextras

              Hope this helps

              1 Reply Last reply
              0
              • O Offline
                O Offline
                onek24
                wrote on last edited by
                #7

                I'm also always putting my qml files into a resource file so just give it a try, maybe it'll fix it.

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved