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

Dock widget with custom title widget is hard to manipulate

    XMLWordPrintable

Details

    Description

      Creating a dock widget and assigning a custom widget using QDockWidget::setTitleBarWidget works fine. But trying to move the dock and put it floating is really hard after that. Moving and de-floating operations are also very hard then. The dock widget contents and title bar widget are painted correctly, but the dock widget frame is not painted.

      Code to reproduce:
      ------------------------------------------------------------------
      #include <QtGui>

      int main( int argc, char * argv[] )
      {
      QApplication app( argc, argv );
      QMainWindow window;
      QWidget central;
      window.setCentralWidget( & central );
      QVBoxLayout layout;
      central.setLayout( & layout );
      QTextEdit text1;
      layout.addWidget( & text1 );
      QDockWidget dock;
      window.addDockWidget( Qt::RightDockWidgetArea, & dock );
      QTextEdit text2;
      dock.setWidget( & text2 );
      QTextEdit text3;
      dock.setTitleBarWidget( & text3 );
      window.show();
      return app.exec();
      }
      ------------------------------------------------------------------

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            admin Administrator
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes