Horst Walter
Horst Walter

Reputation: 14081

Set QStatusBar minimum height per stylesheet

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

Upvotes: 1

Views: 1080

Answers (1)

Bearded Beaver
Bearded Beaver

Reputation: 656

Works for me:

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

enter image description here

Upvotes: 3

Related Questions