setStyleSheet("QPushButton {background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(255, 255, 255, 255), stop:0.5 rgba(180, 180, 180, 255), stop:0.51 rgba(100, 100, 100, 255), stop:1 rgba(160, 160, 160, 255)); border-radius: 6px;padding: 2px; font: bold}"
"QPushButton::hover {background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(200, 255, 200, 255), stop:0.5 rgba(141, 180, 141, 255), stop:0.51 rgba(78, 100, 78, 255), stop:1 rgba(125, 160, 125, 255));}"
"QPushButton::pressed{background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(125, 160, 125, 255), stop:0.5 rgba(78, 100, 78, 255), stop:0.51 rgba(141, 180, 141, 255), stop:1 rgba(200, 255, 200, 255));}");
setStyleSheet("QPushButton {background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(255, 255, 255, 255), stop:0.5 rgba(180, 180, 180, 255), stop:0.51 rgba(100, 100, 100, 255), stop:1 rgba(160, 160, 160, 255)); border-radius: 6px;padding: 2px; font: bold}"
"QPushButton::hover {background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(200, 255, 200, 255), stop:0.5 rgba(141, 180, 141, 255), stop:0.51 rgba(78, 100, 78, 255), stop:1 rgba(125, 160, 125, 255));}"
"QPushButton::pressed{background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(125, 160, 125, 255), stop:0.5 rgba(78, 100, 78, 255), stop:0.51 rgba(141, 180, 141, 255), stop:1 rgba(200, 255, 200, 255));}");
To copy to clipboard, switch view to plain text mode
I just need to drop the dotted line when push button widget is selected. Is there a clean way I can use? If you can supply a tiny sample code or a short explanation it would be great.
Bookmarks