Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-34477

Can't resize QMdiSubWindow to a Desktopsize which contains QGLWidget

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.2.0 RC1
    • 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();
      }

      Attachments

        1. main.cpp
          0.7 kB
        2. out.png
          out.png
          45 kB
        3. qtbug34477.zip
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kleint Friedemann Kleint
            tsugeharu.akai AKAI,Tsugeharu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes