Results 1 to 5 of 5

Thread: Scrolling using QScroller class ..

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2013
    Location
    India
    Posts
    153
    Thanks
    27
    Thanked 18 Times in 18 Posts
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Scrolling using QScroller class ..

    Why you want to write a custom code for kinetic scroll?

    You can use FlickCharm for the same.
    Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.

  2. #2
    Join Date
    May 2010
    Posts
    19
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: Scrolling using QScroller class ..

    I'm not using custom scroll. Its a new class provided by Qt 5 which enables kinectic scroll on the scroll areas. Previously in Qt 4 i has used FlickCharm for this purpose.
    Now since i'm migrating my application to Qt5 i thought of giving it a try.
    Well my observation about QScroller is:
    1. QScroller works when using the QScroller::LeftMouseButtonGesture on QScrollArea on touch devices and desktop
    2. QScroller works using QScroller::LeftMouseButtonGesture and QScroller::TouchGesture on QListViews/treeviews on touch devices and desktop
    3. QScroller doesnot work on QScrollArea when QScroller::TouchGesture is used for touch devices.

  3. #3

    Default Re: Scrolling using QScroller class ..

    You are right! It is exactly what I notice. I just used the
    QScroller::LeftMouseButtonGesture in my application and it's working for desktop and android. However it isn't smooth but it's other issue.
    Quote Originally Posted by p3c0 View Post
    I'm not using custom scroll. Its a new class provided by Qt 5 which enables kinectic scroll on the scroll areas. Previously in Qt 4 i has used FlickCharm for this purpose.
    Now since i'm migrating my application to Qt5 i thought of giving it a try.
    Well my observation about QScroller is:
    1. QScroller works when using the QScroller::LeftMouseButtonGesture on QScrollArea on touch devices and desktop
    2. QScroller works using QScroller::LeftMouseButtonGesture and QScroller::TouchGesture on QListViews/treeviews on touch devices and desktop
    3. QScroller doesnot work on QScrollArea when QScroller::TouchGesture is used for touch devices.

Similar Threads

  1. show object (scene) in widget in class class mainwindow
    By rimie23 in forum Qt Programming
    Replies: 8
    Last Post: 1st May 2012, 16:15
  2. Replies: 1
    Last Post: 20th January 2012, 04:39
  3. Replies: 7
    Last Post: 18th August 2011, 14:43
  4. Replies: 3
    Last Post: 27th December 2008, 19:34
  5. Replies: 3
    Last Post: 16th May 2007, 11:07

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.