
Originally Posted by
spirit
it happens because you override the first style sheet.
join these styles in one string and then set this string.
thanks for reply .. yes its overriding the first style sheet and now i try like this
setStyleSheet(" QProgressBar {border: 1px solid grey;
border-radius:8px;padding:1px},
QProgressBar::chunk {background: qlineargradient(x1: 0, y1: 0.5, x2: 1, y2: 0.5, stop: 0 red, stop: 1 white);
width: 10px;margin: 0.5px}");
setStyleSheet(" QProgressBar {border: 1px solid grey;
border-radius:8px;padding:1px},
QProgressBar::chunk {background: qlineargradient(x1: 0, y1: 0.5, x2: 1, y2: 0.5, stop: 0 red, stop: 1 white);
width: 10px;margin: 0.5px}");
To copy to clipboard, switch view to plain text mode
and its not working ... what i should use to separate the two stylsheets ... .
Bookmarks