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?
Forum Updated to NodeBB v4.3 + New Features

In qml GridView,which property will influence scroll speed?

Scheduled Pinned Locked Moved QML and Qt Quick
10 Posts 5 Posters 6.4k Views 1 Watching
  • 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 6 Jul 2011, 00:27 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 6 Jul 2011, 05:29 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 6 Jul 2011, 06:05 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 6 Jul 2011, 07:08 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 6 Jul 2011, 07:32 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 6 Jul 2011, 07:33 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 7 Jul 2011, 03:49 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 7 Jul 2011, 05:54 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 7 Jul 2011, 08:06 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 8 Jul 2011, 11:10 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

                      6/10

                      6 Jul 2011, 07:33

                      • Login

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