[PyKDE] QTreeWidget Automatically scrolls to top?

Phil Thompson phil at riverbankcomputing.co.uk
Wed Feb 7 08:41:32 GMT 2007


On Wednesday 07 February 2007 1:55 am, Matt Chambers wrote:
> Using PyQt4.1.1
>
> When I remove an item from a QTableWidget, it automatically resets the
> scrollbar to the top.
>
> def removeItem(self,item)
>     self.takeTopLevelItem(self.indexOfTopLevelItem(item))
>
> It works properly with PyQt 4.0.1.  Looked around for properties that
> would affect this, couldn't find anything.

You need to say what version of Qt you are using as that is the most likely 
cause of any change in behaviour. Going back to an earlier version of PyQt 
built against the same version of Qt is unlikely to make any difference.

Phil




More information about the PyQt mailing list