diff --git a/modules/highgui/src/window_QT.cpp b/modules/highgui/src/window_QT.cpp index e764b8544c..c72163cd6b 100644 --- a/modules/highgui/src/window_QT.cpp +++ b/modules/highgui/src/window_QT.cpp @@ -1725,14 +1725,14 @@ CvWindow::CvWindow(QString name, int arg2) //Now attach everything if (myToolBar) - myGlobalLayout->addWidget(myToolBar, Qt::AlignCenter); + myGlobalLayout->addWidget(myToolBar, 0, Qt::AlignLeft); - myGlobalLayout->addWidget(myView->getWidget(), Qt::AlignCenter); + myGlobalLayout->addWidget(myView->getWidget(), 0, Qt::AlignCenter); - myGlobalLayout->addLayout(myBarLayout, Qt::AlignCenter); + myGlobalLayout->addLayout(myBarLayout); if (myStatusBar) - myGlobalLayout->addWidget(myStatusBar, Qt::AlignCenter); + myGlobalLayout->addWidget(myStatusBar, 0, Qt::AlignLeft); setLayout(myGlobalLayout); show(); @@ -2142,7 +2142,6 @@ void CvWindow::createStatusBar() { myStatusBar = new QStatusBar(this); myStatusBar->setSizeGripEnabled(false); - myStatusBar->setFixedHeight(20); myStatusBar->setMinimumWidth(1); myStatusBar_msg = new QLabel;