How to change a button's attribute to checkable and apply the disable stylistic
-
I set the button to setcheckable(true).
And if certain conditions are met, it is disabled.
It is applied in the disable style. However, I would like to give the button that is checked a disable attribute separately. What should I do?usrCellTypeButton { Text-align: center; background-color: #ECEEF2; border: 1px solid #ADAFB1; color: #6B6C70; } usrCellTypeButton::pressed { background-color: #D7D8DB; } usrCellTypeButton:checked { background-color: #467BBF; color: #EFEAEE; } usrCellTypeButton:disabled { background-color: #E7EEF0; border: 1px solid #D5D7D9; color: #C5C6CA; } -
I set the button to setcheckable(true).
And if certain conditions are met, it is disabled.
It is applied in the disable style. However, I would like to give the button that is checked a disable attribute separately. What should I do?usrCellTypeButton { Text-align: center; background-color: #ECEEF2; border: 1px solid #ADAFB1; color: #6B6C70; } usrCellTypeButton::pressed { background-color: #D7D8DB; } usrCellTypeButton:checked { background-color: #467BBF; color: #EFEAEE; } usrCellTypeButton:disabled { background-color: #E7EEF0; border: 1px solid #D5D7D9; color: #C5C6CA; }