tags:

views:

544

answers:

1

Hi, I have created some QLabel type of widgets in QT, and added that to a QToolbar. I want to highlight the particular widget which is under the cursor. I am unable to understand how do I do that. Can somebody please help ? I need this information on QT 4.

Thanks.

+5  A: 
AlexKR
Hi, Thanks for your answer. Could you please point me to specific example where mouse events are handled for QLabel. Also I tried using QPushButton, but it shows some frames and all, which I dont want, thats why I used QLabel. But please point me to some example code of QPushButton as well.thanks.
MnshSnghl
I updated the post with some links to examples.
AlexKR
You could not do the painting yourself, but just change the background color of the palette on mouse enter/mouse leave events. That should be sufficient.
Caleb Huitt - cjhuitt