maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   FingerScrollable in Qt 4.6 (https://talk.maemo.org/showthread.php?t=52991)

aspidites 2010-05-20 19:17

Re: FingerScrollable in Qt 4.6
 
Cool.

BTW, 226 is a duplicate of 207, which has been fixed upstream.

Khertan 2010-05-20 19:50

Re: FingerScrollable in Qt 4.6
 
yep... ...

mece 2010-06-04 22:51

Re: FingerScrollable in Qt 4.6
 
Quote:

Originally Posted by Khertan (Post 668087)
Ok due to bug #226 it s not possible yet with pyside ...

It s works with the last PyQt4 binding available in extras-devel.

Thx to achipa who help me a lot ... in fact who found what s the problem was and give the solution :

qte = QtGui.QTextEdit()
scroller = qte.property("kineticScroller").toPyObject()
scroller.setEnabled(True)

That worked. I ran into an interesting problem though.
Appears that this does not work as it should on QPlainTextEdit()
When using that exact same method the scrolling is so sensitive that you only have to move your finger a few pixels to scroll from top to bottom of a pretty long list. Is this a bug or a feature?

Changed to QTextEdit and everything was peachy, so it's not really a problem for me now.

attila77 2010-06-05 07:10

Re: FingerScrollable in Qt 4.6
 
Probably a Qt bug, but if you take a look at the QAbstractKineticScroller object, you have methods for adjusting various scroll parameters.


All times are GMT. The time now is 02:47.

vBulletin® Version 3.8.8