PDA

View Full Version : setting QToolbar "hover" event



maverick_pol
4th April 2008, 17:01
Hi guys,

I would like to change toolbar's actions(buttons) background to red when action(button) gets mouseOver event. How to do this using style sheets?

QToolbar:: /*???*/
{
background: red;
}

Thanks.

vql
4th April 2008, 17:05
Implement 2 functions: enterEvent & leaveEvent.

aamer4yu
4th April 2008, 19:00
Its
QToolBar:hover
{
}

You can refer the Stylesheet example in QtDemo->Widgets :)

maverick_pol
7th April 2008, 07:54
QToolBar:hover, as predicted, works on the "toolbar" background not for the actions(actions' buttons). So this is not really what I need.

Kacper

coderbob
7th April 2008, 13:53
It would appear


QToolButton:hover{}

or whatever button type you are using would be what you need for your style sheet.