[PyQt] QTableWidget.scrollToItem behaviors on Mac OS X Lion
zw g
pekingmaster at gmail.com
Tue Aug 9 07:48:29 BST 2011
Can someone help me?
Thanks in advance.
Gui
On Mon, Aug 8, 2011 at 9:57 PM, zw g <pekingmaster at gmail.com> wrote:
> Oh, sorry, i forgot sth.
> I execute my app from the command line. (Terminal of Mac OS X Lion)
>
> Here is some information i found during my app runing:
>
>
> 2011-08-08 21:34:30.928 Python[32886:100b] -_continuousScroll is deprecated
> for NSScrollWheel. Please use -hasPreciseScrollingDeltas.
> 2011-08-08 21:34:30.929 Python[32886:100b] -deviceDeltaX is deprecated for
> NSScrollWheel. Please use -scrollingDeltaX.
> 2011-08-08 21:34:30.929 Python[32886:100b] -deviceDeltaY is deprecated for
> NSScrollWheel. Please use -scrollingDeltaY.
>
> Hope that helps.
>
>
> Gui
>
>
>
> On Mon, Aug 8, 2011 at 9:54 PM, zw g <pekingmaster at gmail.com> wrote:
>
>> 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/20110809/0453e923/attachment.html>
More information about the PyQt
mailing list