Style sheets will work recursively. If you apply a stylesheet to the Application, it will be applied to all widgets inside it. You may need to specify what you want to apply the stylesheet to?
Logics
should be something like this.
QHBoxLayout#layoutbox { background-color: red; border-style: outset; border-width: 2px; border-radius: 10px; border-color: beige; font: bold 14px; min-width: 10em; padding: 6px; }
Macgeek
source share