Solved Different sytle to Qaction in Qmenu
-
Hi folks,
I have a QMenu with some menu action enabled and some disabled my requirement is at beginning all menu action should look same and on hover enabled actions should appear grey and disabled actions should appear transparent.
Am able to achieve grey on hover over enabled action but on setting action disabled by default menu looks grey how can i solve this issue??? -
-
U can try the following stylesheet.
widget->setStyleSheet( "QToolBar{background-color:#000000;color:#ffffff;}"
"QToolButton:hover{background-color:#999999;color:#ffffff;}"
"QToolButton{background-color:#000000;color:#ffffff;height:30px;}"
); -
@Pradeep-Kumar Thank you for reply
Am able to achieve, i was setting style sheet to QMenu Disabled property instead of toolbar.
-