[PyKDE] Custom QScrollBar'ed widgets
gordon at doxxx.net
Fri Sep 3 05:48:21 BST 2004
> I would like to attach scrollbars to a custom widget, and I'm not sure
> how to go about it. What is the simplest/cleanest way of informing the
> QToolBar of the custom widget's viewport size change (when text is
> appended, for instance), and to sync the scrollbar with the viewport's
> position, both ways?
> I'll go for cleanest over simplest, if it comes to a choice between the
> two. :)
Have a look at QScrollView: http://doc.trolltech.com/3.3/qscrollview.html
The Detailed Description section should give you the information you
need for scrolling custom widgets.
More information about the PyQt