title: QScroller Kinetic scrolling is not smooth
body: <p>Kinetic scrolling is very important for developing mobile applications with Qt and I noticed that it’s not smooth on the devices ( tried with android device and iphone ) . It looks a bit choppy, jumping from one position to the next one and following the finger movement with delay. This is visible especially when trying to scroll slow. The other applications in the devices are scrolling a lot smoother especially in iphone.</p>
  
  <p>I made a simple test project with QFrame ( ui->frame ) containing only buttons. The buttons are added to QVBoxLayout. This frame is added to QcrollArea object which reacts to touch events. And this scrollArea is added to QGridLayout. So the scrolling is only in vertical direction.</p>
  
  <p>I have this code in the constructor of my class which is based on QFrame:</p>
  
  <pre><code>ui-&gt;frame-&gt;setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed );
  ui-&gt;frame-&gt;setMinimumHeight( 1000 );
  ui-&gt;frame-&gt;setMaximumHeight( 1000 );
  
  m_scrollArea    = new QScrollArea();
  
  m_scrollArea-&gt;setWidget( ui-&gt;frame );
  m_scrollArea-&gt;setWidgetResizable( true );
  m_scrollArea-&gt;setHorizontalScrollBarPolicy( Qt::ScrollBarAlwaysOff );
  m_scrollArea-&gt;setVerticalScrollBarPolicy( Qt::ScrollBarAlwaysOff );
  
  m_layout = new QGridLayout();
  m_layout-&gt;addWidget( m_scrollArea );
  m_layout-&gt;setContentsMargins( 0, 0, 0, 0 );
  setLayout( m_layout );
  
  QScroller::grabGesture( m_scrollArea, QScroller::LeftMouseButtonGesture );
  </code></pre>
  
  <p>Am I doing something wrong in my code and what can I do to fix this thing. Is someone else experiencing the same thing? I want my application to be looking as native as possible and this choppy scrolling is really not something normal.</p>
  
  <p>If you need more information I will try to provide. I may try to upload my test project somewhere and add some screen capture of the device if needed.</p>
  
  <p>The Qt version that i’m using is 5.1.1 for the android and Qt 5.1.0RC1 self-build for the ios.</p>
  
  <p>I added</p>
  
  <pre><code>QScrollerProperties sp;
  sp.setScrollMetric( QScrollerProperties::DragStartDistance,   0.001 );
  sp.setScrollMetric( QScrollerProperties::ScrollingCurve, QEasingCurve::Linear );
  QScroller* qs   = QScroller::scroller( m_scrollArea );
  qs-&gt;setScrollerProperties( sp );
  </code></pre>
  
  <p>The DragStartDistance makes the scrolling more responsive. What other properties can I fine tune to make the scrolling look better?
  I also noticed that the GUI paintEvent() is not called every time the QEvent::Scroll is received from the QScrollArea which I guess may lead to choppy scrolling. So I added code to repaint the GUI every time I receive QEvent::Scroll and the scrolling looks little smoother but still not perfect in the android device.</p>
  
  <p>What else can I try?</p>
  
  <p>I'll appreciate any help that you can give me. Thanks!</p>