When I changed a QToolButton or QPushButton's background color by using StyleSheet, I lose button effects and they seem like labels.
Do you have any idea, how can I change colors of QToolButton and QPushButton without losing button effects?
Thanks.
When I changed a QToolButton or QPushButton's background color by using StyleSheet, I lose button effects and they seem like labels.
Do you have any idea, how can I change colors of QToolButton and QPushButton without losing button effects?
Thanks.
You cannot control that. This happens with style sheet. For better results use different background colors for normal, hover, pressed. So it will look better.
More info here.
if you want to change the stylesheet only for qtoolbutton u write qApp->setStyleSheet("QToolButton{....css...}")
qtool button inherts qpushbutton so if u want to have different css...1st style the qpushbutton and after the qtoolbutton....it will work..i hope..(sry for my english)
Bookmarks