PDA

View Full Version : plastique style sheet, how to change custom parameter



Michael_Levin
29th August 2012, 15:24
Hi!
i use Plastique style sheep for an application.
If i want to change only font of QPushButton by stylesheet:

self.comment_btn.setStyleSheet('''QPushButton {font: bold 8px; }''')
everything works,
but if i change some parameter of plastique stylesheet:

self.comment2_btn.setStyleSheet('''QPushButton {font: bold 10px; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #FF92BB, stop: 1 white);}''')
all other plastique style settings removes. How can i change only one, custom parameter of my style sheet? without loosing all others.