Stylesheet for app resets to default greys
-
Hi and welcome to devnet,
How, where and when are you setting the stylesheet ?
Do you have several of them ?
Are you recreating the problematic widget multiple times ?
-
@SGaist Hi, thanks.
There is a stylesheet set in the MainWindow for most of theseThere are different style sheets on different QFrames below that too.
Yes, this happens almost every time the application is run, at random times, and stays grey after it switches.Perhaps setting the style for these on the MainWindow is the issue?
-
Hi everyone, facing the similar issue, setting the various stylesheet after reading the QSS to the application level. And most of the time it is working perfectly, but suddenly it is broken. Don't know the reason. Did anyone know.
even there is no particular step to reproduce it 100% time.
Using Qt 5.15.1 -
-