diff --git a/modules/highgui/src/window_QT.cpp b/modules/highgui/src/window_QT.cpp index e79597948b..70f9e65e07 100644 --- a/modules/highgui/src/window_QT.cpp +++ b/modules/highgui/src/window_QT.cpp @@ -1875,7 +1875,7 @@ bool CvWindow::isOpenGl() void CvWindow::setViewportSize(QSize _size) { - myView->getWidget()->resize(_size); + resize(_size); myView->setSize(_size); }