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

Windows: QWidget::createWindowContainer focused widget causes QApplication::activeWindow to return NULL

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.1.1
    • 5.1.0 RC2
    • None
    • Windows 7. Qt 5.1.0rc2. Qt Creator.
    • a096b4680dca367ec26725d064eba1df6c37d6b7

    Description

      If a widget created with QWidget::createWindowContainer has focus, then QApplication::activeWindow() returns NULL.

      SAMPLE PROJECT INCLUDED. PLEASE READ INSTRUCTIONS.

      1. Run sample project. You will need to view the 'Output' to see results.

      2. Press button at top of window. Now click on a list item near bottom. Click on button again. Output is 'NULL' for activeWindow.

      3. Now switch to another application and back to the sample application. Click on the button immediately without clicking on the list. Output is non-NULL for activeWindow.

      4. Click on list again. Notice output is again 'NULL'.

      QApplication::activeWindow is returned as NULL when focus is on the list (Qml embedded with QWidget::createWindowContainer).

      Attachments

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              cmeyer Chris Meyer
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes