pyqt qss stylesheet code example
Example: how to change qss in pyqt5
label->setProperty("foo", "success");
label->style()->unpolish(label);
label->style()->polish(label);
label->update();
label->setProperty("foo", "success");
label->style()->unpolish(label);
label->style()->polish(label);
label->update();