talk2amulya,
Hmm....I appreciate the suggestion, but that will create a lot of boiler plate that will have to be maintained for dozens of QPushButtons. I was hoping to achieve the same end by modifying my application's custom, QPlastiqueStyle derived style.
I realised that I could do what you've suggested for all widgets in my style:
void QMyStyle
::polish(QWidget* widget
) // re-implement virtual function from QStyle {
widget->setAttribute(Qt::WA_Hover, false);
}
void QMyStyle::polish(QWidget* widget) // re-implement virtual function from QStyle
{
widget->setAttribute(Qt::WA_Hover, false);
}
To copy to clipboard, switch view to plain text mode
This works; the rollover effect disappears. However, I now have another problem: When I actually press a button, the blue highlighting "sticks" to it until it is re-drawn.
I have no idea why this might be. Do you?
Regards,
Sternocera
Bookmarks