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. In qml GridView,which property will influence scroll speed?
QtWS25 Last Chance

In qml GridView,which property will influence scroll speed?

Scheduled Pinned Locked Moved QML and Qt Quick
10 Posts 5 Posters 6.3k 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.
  • S Offline
    S Offline
    sfjam
    wrote on last edited by
    #1

    hi everyone! i use QML GridView write a application program on cellphone,but when i drag the screen,it scrolls very slow,so i want to ask you which property will influence scroll speed in GridView?thank you very much!

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tigriswind
      wrote on last edited by
      #2

      you can use the listview .and set the contentX or contentY dirently when drag event accurs

      1 Reply Last reply
      0
      • T Offline
        T Offline
        task_struct
        wrote on last edited by
        #3

        Take a look at "horizontalVelocity and verticalVelocity":http://doc.trolltech.com/4.7-snapshot/qml-flickable.html#horizontalVelocity-prop

        "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program."

        • Linu...
        1 Reply Last reply
        0
        • S Offline
          S Offline
          sfjam
          wrote on last edited by
          #4

          but this horizontalVelocity and verticalVelocity propertise is just
          read-only,we cann't assign to it!

          1 Reply Last reply
          0
          • T Offline
            T Offline
            task_struct
            wrote on last edited by
            #5

            Ohh, Im sorry. I didnt see the read-only flag :(

            There is also maximumFlickVelocity property. It is not read-only. May it will help :)

            "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program."

            • Linu...
            1 Reply Last reply
            0
            • L Offline
              L Offline
              lgeyer
              wrote on last edited by
              #6

              "GridView.maximumFlickVelocity":http://doc.qt.nokia.com/4.7-snapshot/qml-flickable.html#maximumFlickVelocity-prop

              1 Reply Last reply
              0
              • S Offline
                S Offline
                sfjam
                wrote on last edited by
                #7

                but why it also slow,it seems have not change!

                1 Reply Last reply
                0
                • L Offline
                  L Offline
                  lgeyer
                  wrote on last edited by
                  #8

                  Have you tried building a Desktop version of your application?

                  If velocity does not change it is most likely a software problem.
                  If velocity changes it is most likely a hardware problem (limited resources).

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    sfjam
                    wrote on last edited by
                    #9

                    i did a test,when i just use a ListView,the speed is ok,but when i use two views which are GridView and ListView,it response very slow,so how to solve this problem?

                    1 Reply Last reply
                    0
                    • I Offline
                      I Offline
                      itwiz
                      wrote on last edited by
                      #10

                      You can use cacheBuffer to cache some delegates outside visible area.That can help in smooth scrolling.
                      How complex is your grid delegate ? Simpler the delegate better will be scrolling.

                      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