1

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)?

Horst Walter
  • 13,663
  • 32
  • 126
  • 228

1 Answers1

3

Works for me:

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

enter image description here

Bearded Beaver
  • 646
  • 4
  • 21