QProgressBar und StyleSheets, ist es ein Bug?
Verfasst: 3. Juni 2008 10:54
Hallo QtForum-Gemeinde! Ich arbeite (mit Designer) mit Qt 4.3.3 und moechte auf ein QProgressBar StyleSheets anwenden, soweit sogut, es klappt einwandfrei solange man QProgressBar mit orientation:Horisontal verwendet. Nun moechte ich mein QProgressBar auf den Kopf stellen (d.h. orientation:Vertical), und das geht prompt nicht-> mein QProgressBar sieht so aus, als haette ich keine StyleSheets angewendet.
Ich habe als Quelle die Seite von Trolltech benuzt http://labs.trolltech.com/blogs/2007/06 ... scrollbar/.
So siehts mein StyleSheet fuer QProgressBar (Horisontal) aus:
und so siehts mein StyleSheet fuer QProgressBar (Vertical) aus:
Ist das ein Bug oder mache ich etwas falsch? 
Ich habe als Quelle die Seite von Trolltech benuzt http://labs.trolltech.com/blogs/2007/06 ... scrollbar/.
So siehts mein StyleSheet fuer QProgressBar (Horisontal) aus:
Code: Alles auswählen
QProgressBar {
border: 2px solid grey;
border-radius: 10px;
font: bold "Helvetica";
font-size: 18px;
}
QProgressBar::chunk {
background-color: red;
width: 5px;
margin: 0.5px;
}
Code: Alles auswählen
QProgressBar:vertical {
border: 2px solid grey;
border-radius: 10px;
font: bold "Helvetica";
font-size: 18px;
}
QProgressBar::chunk {
background-color: red;
width: 5px;
margin: 0.5px;
}