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

Floating QDockWidgets can be resized despite having a fixed width

    XMLWordPrintable

Details

    Description

      When setting the width of a QDockWidget to 80 (less than 92), it is possible to use the right-bottom resize cursor to resize the widget between 80 and 92.

      The following example reproduces the problem (reproduced on Windows):

      #include <QtGui>
      
      int main(int argc, char** argv)
      {
      	QApplication app(argc, argv);
      	QMainWindow window;
      	QDockWidget *dock1 = new QDockWidget(&window);
      	window.addDockWidget(Qt::TopDockWidgetArea, dock1);
      	dock1->setWidget(new QTextEdit(dock1));
      	dock1->setFixedWidth(80);
      	dock1->setFloating(true);
      	window.show();
      	app.exec();
      }

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            naevdal Sigrid Fjell Nævdal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes