Results 1 to 3 of 3

Thread: QScroller choppy animation on Android

  1. #1
    Join Date
    Mar 2015
    Posts
    2
    Thanked 1 Time in 1 Post

    Default QScroller choppy animation on Android

    Hi,
    I have a listwidget
    Qt Code:
    1. QScroller::grabGesture(ui->listWidget, QScroller::LeftMouseButtonGesture);
    To copy to clipboard, switch view to plain text mode 
    On desktop scrolling is smooth no matter how many items i have in the list but on android the animation is choppy both on real device and on emulator.
    I'm using
    Qt Code:
    1. setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel);
    To copy to clipboard, switch view to plain text mode 
    It seems that the gui struggles to render the animation and is very annoying.The feeling is like playing a modern game on a old computer.
    Thanks!

  2. The following user says thank you to Andre92 for this useful post:

    mikhail_k (5th July 2018)

  3. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,420
    Thanks
    37
    Thanked 1,545 Times in 1,495 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QScroller choppy animation on Android

    The CPU on the simulator and device are likely not as fast as the CPU on the desktop.

    You could try a QtQuick2 based UI, which is mostly rendered hardware accelerated on the GPU.

    Cheers,
    _

  4. #3
    Join Date
    Mar 2015
    Posts
    2
    Thanked 1 Time in 1 Post

    Default Re: QScroller choppy animation on Android

    Hello,
    Thank you for your reply!
    All QtQuick animation are fluid but I have a big project and I have never used Qml so i have no ideea how to make only the gui in qml and keep logic in c++.
    I will try to find another way to display the data!

Similar Threads

  1. QScroller sensitivity on QComboBox
    By adutzu89 in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 3rd June 2015, 21:07
  2. Replies: 2
    Last Post: 8th January 2015, 19:15
  3. QScroller speed and touch screen
    By Talei in forum Qt Programming
    Replies: 4
    Last Post: 4th November 2014, 10:38
  4. Scrolling using QScroller class ..
    By p3c0 in forum Newbie
    Replies: 4
    Last Post: 16th July 2014, 03:38
  5. Replies: 0
    Last Post: 22nd May 2014, 20:44

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.