Hello All,

I am using Qt 4.6.4 on Mac OS X.

I have a simple QWidget based UI which contains a QPushButton.
I have applied stylesheet on QPushButton to get hover effect as,

Code:
button->setStyleSheet("QPushButton:hover{background-color:blue;}");
connect(button, SIGNAL(clicked()),this,SLOT(onButtonClicked()));
in slot i am calling,
Code:
QDesktopServices::openUrl(QUrl("http://google.com"));

On clicking the button, the Url is opened in web browser. But the hover effect is retained.

Clicking on the main widget do not refresh the button hover effect.
The hover effect remains until the pushbutton gets mouse hover again.

Any input on this.

Thanks,