[PyQt] QTableWidget.scrollToItem behaviors on Mac OS X Lion

zw g pekingmaster at gmail.com
Mon Aug 8 14:54:16 BST 2011


Dear List,


I'm a newbie of PyQt, i am learning it recently.

QTableWidget's scrollToItem() method seems not work correctly on Mac OS X
lion. (I guess)
After i set the currentItem by setCurrentItem() method, then i invoke the
scrollToItem(myCurrentItem(), 3)

self.obj.setCurrentItem(self.obj.item(row, column))
self.obj.scrollToItem(self.obj.currentItem(), 3)              # The second
argument could be 0, 1, 2 or 3.

It just highlight the current item of the row. (Which was the right action)
But i also want it to scroll to the row if that row wasn't in the viewpoint.
(For example, if i drag down the side slide bar to some other page and the
current item of the row was not on my screen.)

It is a bug or just i use the wrong method?
Some one help me?

Thanks in advance.


Gui
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20110808/8fe9e2db/attachment.html>


More information about the PyQt mailing list