Hi.
I ve same problem like u. Can u plz tell me how to set default style sheet?
I tried like setStyleSheet(QString(""));
But its not working. My code is as follows
To copy to clipboard, switch view to plain text mode
I ve a push button. if i press it 1st time Nightcolor() ll b called. But if i ll press nxt time default style sheet shd be activated. but its not activating.
From the look of your code, You are setting a empty style sheet on the global object and not on your "ptr" object. Since the ptr object now has a style, it takes precidence over a global style. To set that object back to "default" use ptr->setStyleSheet("");
Bookmarks