Set QStatusBar minimum height per stylesheet

993 Views Asked by At

Is there a way to set a minimum height for a QStatusBar

  1. Docu says QStatusBaronly supports color
  2. I have tried QStatusBar::item
  3. also QStatusBar QLabel

Is there a way to force a minimum size of QStatusBar (per stylesheet)?

1

There are 1 best solutions below

0
On BEST ANSWER

Works for me:

ui->statusBar->setStyleSheet("QStatusBar {min-height: 50; background-color: black; }");

enter image description here