Enable own widget for stylesheet
问题 I want to enable my own widget class for stylesheets, whereat I am not talking about setStyleSheet(qss) , but selectors in a qss stylesheet. It is understood that I have to replace the "::" with "--" in namespaces. Here ( Qt Stylesheet for custom widget ) I have found a similar question, but it is > 4 years old. Based on the answer I have some detailed questions: a) Is the published approach with an overridden paintEvent still valid (Qt5.6/5.7), from https://stackoverflow.com/a/8817908/356726