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

QDockWidget gets unresizeble if contains QWindow inside

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.10.0
    • None

    Description

      I am developing a windows application that contains dockable widgets. Some of that widgets contains QWindow based widgets. Recently I built my project with Qt 5.10 VC 2015 and since that docks, that contains QWindow based widgets lost their title bars and resize handles, so one cannot resize or move them. This issue disappears when the application built with Qt 5.8.0 VS 2015.
      To reproduce the issue put bellow code at the end of the void MainWindow::createDockWindows() in dockwidgets Qt sampe:

      dock = new QDockWidget(tr("OpenGL"), this);
      QWindow* wnd = new QWindow();
      QSurfaceFormat format;

      format.setDepthBufferSize(16);
      format.setSwapInterval(1);
      format.setSwapBehavior(QSurfaceFormat::DoubleBuffer);
      format.setRenderableType(QSurfaceFormat::OpenGL);
      format.setProfile(QSurfaceFormat::CoreProfile);

      wnd->setSurfaceType(QWindow::OpenGLSurface);
      wnd->setFormat(format);

      wnd->create();
      QWidget* cont = QWidget::createWindowContainer(wnd);
      dock->setWidget(cont);
      addDockWidget(Qt::RightDockWidgetArea, dock);

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sletta Gunnar Sletta
            alexvrom Alex
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes