QPushButton
Я создал в Qt Designer с этой таблицей стилей:Qt - Flat QPushButton, цвет фона не работает
QPushButton#pushButton {
background-color: #ffffff;
}
QPushButton#pushButton:disabled {
background-color: yellow;
}
QPushButton#pushButton:pressed {
background-color: orange;
}
QPushButton#pushButton:focus:pressed {
background-color: black;
}
QPushButton#pushButton:focus {
background-color: green;
}
QPushButton#pushButton:hover {
background-color: red;
}
QPushButton#pushButton:checked {
background-color: pink;
}
это работает, но когда я проверить «плоский» в свойствах, то это Безразлично» t работа, я хотел бы спросить вас, почему? И как я могу это сделать, если мне нужна квартира QPushButton
?
Это очень, очень, очень, очень полезно! Спасибо, что поделились – KGCybeX
@KGCybeX ваш прием :) – tomsk