c++qtqtstylesheetsqstatusbar

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


Solution

  • Works for me:

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

    enter image description here