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

QDockWidget with an embedded QWindow looses title bar

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Cannot Reproduce
    • Affects Version/s: 5.2.0
    • Fix Version/s: None
    • Component/s: GUI: Window management
    • Labels:
      None
    • Environment:
      Windows 7 64bit
      Qt 5.2.0 MSVC2012 64 OpenGL

      Description

      I have a QDockWidget I am setting the internal widget to a widget created using QWidget::createWindowContainer
      When I show the widget in a docked state it doesn't have a title bar.
      The same code used to work with 5.1 and 5.1.1
      Here is an excerpt of the code:

      wnd= QWidget::createWindowContainer(dynamic_cast<QWindow*>(rs.renderer->getUnderlyingSurface()));
      wnd->setMinimumHeight(180);
      ui->dockFilmStrip->setWidget(wnd);
      ui->dockFilmStrip->setVisible(true);
      

      I can work around it by adding the following after calling setVisible:

      ui->dockFilmStrip->setFloating(true); 
      ui->dockFilmStrip->setFloating(false);
      

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              kleint Friedemann Kleint
              Reporter:
              scabot Sebastian Cabot
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes