Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.1.1, 5.2.0 Beta1
-
None
-
OS:Windows 7 64 bit
Compiler:Visual Studio 2010 SP1
Qt:5.1.1, 5.2.0beta1(not ANGLE version, but native OpenGL)
-
a1db174ea98fab8669da498639895bac4c894baf
Description
When resizing QMdiSubwindow to a Desktopsize which contains QGLWidget,
there are some cases that can't resize properly.
One of these cases can be reproduced in the following codes.
--------------------------------------------------------------------------
#include <QtOpenGL/QtOpenGL>
#include <QtWidgets/QtWidgets>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
// create QMainWindow and QMdiArea
QMainWindow* mainWnd = new QMainWindow();
QMdiArea* mdi = new QMdiArea(mainWnd);
mainWnd->setCentralWidget(mdi);
mainWnd->show();
app.setActiveWindow(mainWnd);
// Be sure to confirm that your Desktop size is 1920x1200;
// create one QMdiSubWindow
// This can be resize properly
QMdiSubWindow* subWnd1 = mdi->addSubWindow(new QGLWidget());
subWnd1->resize(1920, 1200);
subWnd1->show();
// create another one
// This can't be resize
QMdiSubWindow* subWnd2 = mdi->addSubWindow(new QGLWidget());
subWnd2->resize(1920, 1200);
subWnd2->show();
return app.exec();
}