Active Topics

 


Reply
Thread Tools
Posts: 79 | Thanked: 20 times | Joined on Apr 2010
#1
By default, it seems that QScrollArea is "finger scrollable" but not "kinetic", and the user experience is much worse than the standard scrollers in Maemo Gtk. I understand that there is a "kineticScroller" property for QScrollArea. I would like to try this but cannot find the proper documentation anywhere.

Please share if you know where the documentation is, or if you have a good (PyQt) example of usage.
 
Posts: 115 | Thanked: 83 times | Joined on Aug 2010 @ Paris, France
#2
You may try this:

Code:
scroller = mywidget.property("kineticScroller").toPyObject()
if scroller:
    scroller.setEnabled(True)
 

The Following 3 Users Say Thank You to Twidi For This Useful Post:
Posts: 79 | Thanked: 20 times | Joined on Apr 2010
#3
Thanks! I also finally found the dynamic property introspection method in QObject, which helps. But I still wonder where all(?) of these Maemo add-ons are actually documented.
 
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#4
The Qt for Maemo documentation:

http://doc.qt.nokia.com/qt-maemo-4.6...es-maemo5.html

The toPyObject() method is documented in the PyQt documentation:

http://www.riverbankcomputing.co.uk/.../pyqt4ref.html
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc
 

The Following 2 Users Say Thank You to attila77 For This Useful Post:
Posts: 79 | Thanked: 20 times | Joined on Apr 2010
#5
Excellent, thanks.

Seems like the documentation does not completely reflect the version of PyQt on N900 today, as I am getting an error for a missing property when trying to set the axis threshold, for example.
 
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#6
Hm, can you post an example ? Make sure you're looking at Qt4.6 docs, not 4.7 or mobility.
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc
 
Posts: 79 | Thanked: 20 times | Joined on Apr 2010
#7
I am looking at 4.6 documentation at:
http://doc.qt.nokia.com/qt-maemo-4.6...cscroller.html

And the code is:

scroller = mywidget.property("kineticScroller").toPyObject()
if scroller:
scroller.setEnabled(True)
scroller.setAxisLockThreshold(1.0)

setEnabled fine, setAxisLockThreshold not found, axisLockThreshold not found.

Thanks,
+ Mikael
 
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#8
Hm, that might actually be a bug in my PyQt port, let me check.
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc
 
Khertan's Avatar
Posts: 1,012 | Thanked: 817 times | Joined on Jul 2007 @ France
#9
Just a tips :

I use ipython and help() (interactive help) as a documentation ... it s really help to find differences with the documentation sometimes

Last edited by Khertan; 2010-08-20 at 15:33.
 
Reply


 
Forum Jump


All times are GMT. The time now is 00:01.