You have to change the order of pressed and hover. Then it works.
You have to change the order of pressed and hover. Then it works.
meraj ansari (13th May 2010)
Thanks Lykurg
it doesn't work for me .
I used this
QPushButton#pushButton {
background-color: red;
border-style: outset;
border-width: 2px;
border-radius: 10px;
border-color: beige;
font: bold 14px;
min-width: 10em;
padding: 6px;
}
QPushButton#pushButtonressed {
background-color: rgb(224, 0, 0);
border-style: inset;
}
QPushButton#pushButton:hover {
background-color: rgb(224, 255, 0);
border-style: inset;
}
Well, aslo you have to change the order...Qt Code:
QPushButton#pushButton:hover { background-color: rgb(224, 255, 0); border-style: inset; } QPushButton#pushButton:pressed { background-color: rgb(224, 0, 0); border-style: inset; }To copy to clipboard, switch view to plain text mode
Bookmarks