finally i found it! now the status bar size changes automatically
This commit is contained in:
liranbg 2014-09-23 07:12:45 +03:00
parent f31e6937b0
commit 0f6ffb1223
2 changed files with 4 additions and 4 deletions

View file

@ -17,7 +17,7 @@ MainScreen::MainScreen(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainSc
//StatusBar
ui->statusBar->setStyleSheet("QStatusBar::item { border: 0px solid black };");
ui->statusBar->setMaximumSize(this->geometry().width(),STATUS_ICON_HEIGH);
ui->statusBar->setFixedHeight(STATUS_ICON_HEIGH);
ui->statusBar->showMessage(tr("Ready"));
//GPA Tab

View file

@ -665,9 +665,9 @@ font-size: 15px;
</widget>
<widget class="QStatusBar" name="statusBar">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Maximum">
<horstretch>200</horstretch>
<verstretch>200</verstretch>
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">