C++ (Qt)"QWidget { background-color: green; border-radius: 10px; border-width: 2px, border-style: solid; border-color: black }"
C++ (Qt)".QMyWidget{ background-color: green; border-radius: 10px; border-width: 2px, border-style: solid; border-color: black }"
C++ (Qt).QPushButton Matches instances of QPushButton, but not of its subclassesQPushButton#okButton Matches all QPushButton instances whose object name is okButton.QDialog > QPushButton Matches all instances of QPushButton that are direct children of a QDialog.
MyWidget { ... }
C++ (Qt) void CustomWidget::paintEvent(QPaintEvent *) { QStyleOption opt; opt.init(this); QPainter p(this); style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this); }