[PyQt] ItemEntered signal and QListWidget
Phil Thompson
phil at riverbankcomputing.com
Wed Jun 17 08:29:29 BST 2009
On Tue, 16 Jun 2009 23:13:20 -0400, matt.dubins at sympatico.ca wrote:
> Hi Group,
>
> I'm trying to set a tool tip for a QListWidget that changes depending on
> which item in the QListWidget the user has the mouse cursor over. I
tried
> to connect the QListWidget's ItemEntered signal to a function that saves
> (and prints for testing purposes) the row number of the item. Every time
I
> test it out and get it to print the row number that the cursor is over,
it
> prints out '-1'. Also it will print out '-1' however many times I move
my
> cursor from item to item. Can anyone tell me what seems to be wrong?
Why not just call setToolTip() on each QListWidgetItem?
Phil
More information about the PyQt
mailing list