PDA

View Full Version : About stylesheet, inherintance and stop



tonnot
19th December 2011, 17:22
I have a simple stylesheet applied to a Qframe which are going to content some custom widgets.
If I have
Qframe {} syntax every frame of every widget contained on tha main Frame inheritates the stylesheet
.Qframe {} means that only the current frame uses the style.

But if I want to use QFrame to have every frame with this style and write this code at my custom widget constructor :

this->setStyleSheet("");
this->setStyleSheet(styleSheet());
it results that it does not stop the inheritance.
Any idea ?
Thanks