[PyQt] re: Wretched horizontal scrolling of QTreeWidget on Linux
Edward K. Ream
edreamleo at gmail.com
Tue Nov 18 15:04:43 GMT 2008
[quote]
On Linux, a QTreeWidget will typically scroll horizontally when an
item to the right of the present item is selected programatically,
i.e., not with the mouse, but with code triggered from a keystroke.
Worse, scrolling doesn't get restored to zero horizontal offset when a
"leftward" item is selected. Not good.
[end quote]
It turns out that the difference in behaviors in the QTreeWidget on
the XP and Linux platforms was the result of a call to
QTreeWidget.scrollToItem in an item-expanded event handler. On XP,
this scrolls only vertically; on Linux, it may scroll in either
direction. Removing this call makes the QTreeWidget usable on Linux.
I'm tempted to call this the most serious bug I've found with PyQt,
which is another way of saying that PyQt has been very very good to me
:-)
Edward
--------------------------------------------------------------------
Edward K. Ream email: edreamleo at gmail.com
Leo: http://webpages.charter.net/edreamleo/front.html
--------------------------------------------------------------------
More information about the PyQt
mailing list