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

It is possible to change the window state of a QWidget without being notified about such a change.

    XMLWordPrintable

Details

    Description

      Doing something like:

      QWidget parentWidget;
      QWidget childWidget(&parentWidget);
      childWidget.showMaximized();
      childWidget.move(childWidget.pos()); // or resize(childWidget.size()) or setGeometry(childWidget.geometry())

      will reset the Qt::WindowMaximized flag, but a change/move event is never sent to the widget so it's impossible to detect such a window state change.

      I belive it's suffient to simply check the current geometry before changing it in QWidget::move/resize/setGeometry.

      Attachments

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

        Activity

          People

            bjnilsen Bjørn Erik Nilsen
            bjnilsen Bjørn Erik Nilsen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes