[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: [EMAIL PROTECTED] Leo: http://webpages.charter.net/edreamleo/front.html -------------------------------------------------------------------- _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
