I guess something like
qApp->setStyleSheet(myStyleSheet); // myStyleSheet stands for your custom stylesheet string
qApp->setStyleSheet(QString());
qApp->setStyleSheet(myStyleSheet); // myStyleSheet stands for your custom stylesheet string
To copy to clipboard, switch view to plain text mode
would do it. I assume Qt will compare the passed string to it's current stylesheet string and drop out of the function if they are identical in order to avoid unneccesary stylesheet recalculations, so passing any string that is different from your current style would do it. Yet I think, this is not what you are looking for.What the qt documentation refers to is changing properties that influence the style after the stylesheet has already been applied. This means, Qt respects certain properties when it "calculates the look" whenever you call setStyleSheet. If you change the properties later Qt will not automatically recalculate those. I don't think that is the case for you.
Bookmarks