Solved How to prevent widget from inheriting parent CSS ?
-
I have a number of widgets using CSS style sheet's, I've set a style sheet for a QFrame which has the following:
QFrame {background-color: #e9efef; background-image: url('meshtile_4x4.png'); border: 2px solid #cccccc; border-top-left-radius: 8px; border-top-right-radius: 8px; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px;}"
The issue I've got is that every other widget that is contained in the QFrame is inheriting the same style sheet. Is there any way to prevent this inheritance whilst still being able to set stye sheet for child widgets independently?
-
@SPlatten , Fixed I had a bug which was stripping off the QFrame { part of the CSS, with that fixed its now ok.
-
@SPlatten , Fixed I had a bug which was stripping off the QFrame { part of the CSS, with that fixed its now ok.