[PyQt] ItemEntered signal and QListWidget
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
> 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
> test it out and get it to print the row number that the cursor is over,
> prints out '-1'. Also it will print out '-1' however many times I move
> cursor from item to item. Can anyone tell me what seems to be wrong?
Why not just call setToolTip() on each QListWidgetItem?
More information about the PyQt