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

[REG: 5.9.4->5.9.5]: When receiving onActiveChanged signal to a QML Window type, the active property is always true

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Invalid
    • Affects Version/s: 5.9.5, 5.10.1, 5.11.0 Beta 4
    • Fix Version/s: None
    • Component/s: Quick: Other
    • Environment:
      Windows, macOS 10.13

      Description

      When opening a frameless QML Window type and causing it to lose focus to the main ApplicationWindow, it properly receives onActiveChange signal, but the active property of this signal is always true.

      If whole QML Application loses focus, then the onActiveChanged properly returns active=false.

      This is regression from 5.9.4 to 5.9.5.

      Steps to reproduce:

      • Run attached sample
      • Press "Show >>" button
      • Press anywhere but the opened Window (Cyan Rectangle)
      • EXPECTED: The topmost Window (Cyan Rectangle) is closed
      • ACTUAL: onActiveChanged receives only active=true events and the Window stays open

      Working use case is to use either 5.9.4 with same steps, or with 5.9.5:

      • Run attached sample
      • Press "Show >>" button
      • Click on Windows taskbar so that the QML Application loses focus

        Attachments

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

          Activity

            People

            Assignee:
            kari.oikarinen Kari Oikarinen
            Reporter:
            jussi_witick Jussi Witick
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes