Qt/Finger Scrolling

(FIrst pass)
(redirect)
 
(3 intermediate revisions not shown)
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.
+
#REDIRECT [[Qt4 development]]
-
 
+
-
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.
+
-
 
+
-
=="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:Qt]]
+

Latest revision as of 14:07, 12 August 2010

  1. REDIRECT Qt4 development