Oh, sorry, i forgot sth.<br>I execute my app from the command line. (Terminal of Mac OS X Lion)<br><br>Here is some information i found during my app runing:<br><br><br><span></span>2011-08-08 21:34:30.928 Python[32886:100b] -_continuousScroll is deprecated for NSScrollWheel. Please use -hasPreciseScrollingDeltas.<br>


2011-08-08 21:34:30.929 Python[32886:100b] -deviceDeltaX is deprecated for NSScrollWheel. Please use -scrollingDeltaX.<br>2011-08-08 21:34:30.929 Python[32886:100b] -deviceDeltaY is deprecated for NSScrollWheel. Please use -scrollingDeltaY.<br>


<br>Hope that helps.<br><br><br clear="all">Gui<br>
<br><br><div class="gmail_quote">On Mon, Aug 8, 2011 at 9:54 PM, zw g <span dir="ltr"><<a href="mailto:pekingmaster@gmail.com" target="_blank">pekingmaster@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Dear List,<br><br><br>I'm a newbie of PyQt, i am learning it recently.<br><br>QTableWidget's scrollToItem() method seems not work correctly on Mac OS X lion. (I guess)<br>After i set the currentItem by setCurrentItem() method, then i invoke the scrollToItem(myCurrentItem(), 3)<br>



<br>self.obj.setCurrentItem(self.obj.item(row, column))<br>self.obj.scrollToItem(self.obj.currentItem(), 3)              # The second argument could be 0, 1, 2 or 3.<br><br>It just highlight the current item of the row. (Which was the right action)<br>



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.)<br><br>It is a bug or just i use the wrong method?<br>



Some one help me? <br><br>Thanks in advance.<br><br><br clear="all">Gui<br>
</blockquote></div><br>