[PyQt] re: Wretched horizontal scrolling of QTreeWidget on Linux

Vicent Mas uvemas at gmail.com
Tue Nov 18 15:41:53 GMT 2008


Sorry for the noise. It seems that my email client was not
synchronized with the server and I didn't saw your last post.
Happy to see that you fixed the problem.

Vicent.

2008/11/18 Edward K. Ream <edreamleo at gmail.com>:
> [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
> --------------------------------------------------------------------
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>



-- 
Share what you know, learn what you don't.


More information about the PyQt mailing list