[PyQt] Make widget look disabled

Hans-Peter Jansen hpj at urpla.net
Sat Aug 1 14:07:37 BST 2009

Am Freitag, 31. Juli 2009 schrieb Anita Westman:
> I have 4 widgets. The widget that is currently active has a border around
> the frame.  I want the user to be able to select the other 3 widgets, but
> while they are not selected I want them to look disabled.  When I disable
> using setEnabled(False), I can't get the mouse events for those widgets
> to unselect the last frame and draw a border around the newly selected
> frame.

Sounds like you want to reinvent GUI hehavior in a pretty uncommon way. 
Anyway, setMouseTracking(True) is probably what you're after.


More information about the PyQt mailing list