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

tst_QWidget::activation() fails on Vista

    XMLWordPrintable

Details

    Description

      The tst_QWidget::activation() fails on Vista (#1320)
      #if defined(Q_WS_WIN)
      if (QSysInfo::WindowsVersion > Qt::WV_XP)
      QEXPECT_FAIL("", "MS introduced new behavior after XP", Continue);
      #endif
      QVERIFY(qApp->activeWindow() == &widget2);

      Currently this is marked as an expected failure for 2003 & above. This seems like a change in Policy change on Windows OS side from 2003/Xp64 onwards. This can be fixed on vista with the following fix, we have to decide whether to change like this or add a new show() which accepts State as a parameter

      ==== //depot/qt/4.3/src/gui/kernel/qwidget.cpp#40 - c:\depot\qt-4.3\src\gui\kernel\qwidget.cpp ====
      @@ -2303,7 +2303,8 @@

      setWindowState(windowState() & ~(Qt::WindowMinimized

      Qt::WindowMaximized
      Qt::WindowFullScreen));
      +
      Qt::WindowFullScreen)
      +
      Qt::WindowActive);
      show();
      }

      Attachments

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

        Activity

          People

            pullatti Prasanth Ullattil
            pullatti Prasanth Ullattil
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes