Hey,

You might find the easiest approach is just using a stylesheet:
http://qt-project.org/doc/qt-4.8/stylesheet-examples.html#customizing-qlistview

It lets you use the "hover" state for items.

I'm guessing with your current solution, the color will stay the same if
you move your mouse out of the list widget, without it entering another
item.




On Sat, Sep 6, 2014 at 10:55 AM, Bay <[email protected]> wrote:

> Solved.
>
> My logic failed me, all I had to do to was to set all the background to
> the original background every time the mouse entered a new item.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/8b0713c0-2665-45ba-b093-158ed3767acd%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/8b0713c0-2665-45ba-b093-158ed3767acd%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0pZ5goULxXnfmMLtE8H4V7k3k7fbQO2ZERQ5Kw_Z2Fgg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to