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

QMainWindow changeEvent() - window is minimized

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • 5.0.1
    • 5.0.0
    • GUI: Window management
    • None
    • mingw 4.6.2
      Windows 7 Professional

    Description

      MainWindow is not maximized: I minimize the window and restore it from taskbar. Signals mainWindowMinimalize() and mainWindowRestore() are emitted.

      MainWindow is maximized: I minimize the window and restore it from taskbar. Signal mainWindowMinimalize() is emitted twice.

      Qt 4.7.4 no problem.

      code example:

      class MainWindow : public QMainWindow
      {
      ...
      }

      void MainWindow::changeEvent(QEvent *e)
      {
      static int n = 0;

      QMainWindow::changeEvent(e);

      if (isMinimized())

      { qDebug() << "Minimized" << n++; emit mainWindowMinimalize(); }

      else

      { qDebug() << "Restore" << n++; emit mainWindowRestore(); }

      }

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            mk33 Martin Kucera
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes