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

WindowFlags popUp can make two windows look active on the same time in Windows

    XMLWordPrintable

Details

    Description

      Create a QWidget in a dialog
      x has a child
      y has the Qt::Popup flag set
      when x gets the mousePressEvent, call this code:

      const QPoint ppt = mapToGlobal(QPoint(0, height()));
      m_popup->move(ppt);
      m_popup->show();
      

      When you Alt-tab to another application, the popup hides itself which is normal for a popup.

      The problem is, when you alt-tab, both the application that houses x and y and the application you alt-tabbed to (explorer or what have you) seem to be activated (the top bars of both applications are highlighted) which is not normal for Windows.

      Attachments

        1. main.cpp
          0.8 kB
          Martin Petersson
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            pullatti Prasanth Ullattil
            xcm Martin Petersson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes