Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    [unsolved]QML is slow in Android

    QML and Qt Quick
    5
    7
    4436
    Loading More Posts
    • 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
      flaviomarcio 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
              }
      }
      

      }

      Flavio Portela

      1 Reply Last reply Reply Quote 0
      • JKSH
        JKSH Moderators last edited by

        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 Reply Quote 0
        • F
          flaviomarcio last edited by

          I have not found what you need to qt5.

          Are you able to install?

          Flavio Portela

          1 Reply Last reply Reply Quote 0
          • D
            daliusd 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/

            1 Reply Last reply Reply Quote 0
            • F
              flaviomarcio last edited by

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

              thank you.

              Flavio Portela

              1 Reply Last reply Reply Quote 0
              • D
                deuteros 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:

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

                Hope this helps

                1 Reply Last reply Reply Quote 0
                • O
                  onek24 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.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post