Qt/Finger Scrolling

m (development category)
(Replacing page with ' Category:Development Category:Qt')
Line 1: Line 1:
-
The [http://doc.trolltech.com/4.5/qabstractscrollarea.html QAbstractScrollArea] widget in Qt-maemo has been extended to provide a touch-friendly kinetic scroll with minimal scrollbars.
 
-
 
-
This widget underlies many common Qt widgets such as [http://doc.trolltech.com/4.5/qtextedit.html QTextEdit] and [http://doc.trolltech.com/4.5/qcombobox.html QComboBox] which get this behaviour "for free".
 
-
 
-
However, this behaviour is not always desired so you can turn it on and off if desired (and soon you can tune behaviour).
 
-
 
-
The primary control mechanism is to set a dynamic property on the widget implementing QAbstractScrollArea.
 
-
 
-
=="FingerScrollable" Property==
 
-
The main control is simply "FingerScrollable" and doing
 
-
  setProperty("FingerScrollable", false);
 
-
will disable it.
 
-
 
-
You can enable it by setting the property to true. Currently this is not done at the application level.
 
-
 
-
Note that this finger scrolling is '''not''' supported on Diablo Qt version yet (Oct 2009).
 
-
 
-
=="FingerScrollBars" Property==
 
-
The thin scrollbars can be disabled at the application level:
 
-
  qapp->setProperty("FingerScrollBars", false);
 
-
or in specific widgets:
 
-
  sArea->setProperty("FingerScrollBars", true);
 
[[Category:Development]]
[[Category:Development]]
[[Category:Qt]]
[[Category:Qt]]

Revision as of 12:06, 12 August 2010