PDA

View Full Version : QApplication::setStyleSheet()



Ryhel
15th March 2007, 12:24
I was trying to customize GUI made in Qt Designer by calling QApplication::setStyleSheet() and got one strange feature: when I set in StyleSheet even one property for some widget, for example QLabel{background-color : red}, other properties of this widget that I have set for this widget in Designer (like font, alignment, etc...) are reset to defauls or to these of widget`s parent. If anybody could tell is this a normal behaviour or a bug, or maybe I do something wrong?

high_flyer
15th March 2007, 13:09
I am not sure about this, but I think you can't mix the two.
I think you should either use the properties from designer, or make these changes in the styles heet (the changes to made in the propertied through designer)