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

Qt Bug Report: Qt::Window widgets permanently lose mouse tracking after hide() during mousePressEvent

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.9.0
    • GUI: Window management
    • None
    • - **Qt Version**: 6.9.0
      - **Platform**: macOS [15.5 (24F74)] 
      - **Compiler**: Apple clang version 16.0.0 
    • macOS
    • macOS

    Description

      Summary

      When a `Qt::Window` widget is hidden during `mousePressEvent`, its mouse tracking becomes permanently corrupted. Child widgets no longer receive mouse enter/leave events, and mouse move events are not delivered. This does not occur with `Qt::Popup` widgets.

       

      Steps to Reproduce:

      see attachment

      Attachments

        1. test.cpp
          2 kB
          JK Yang
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vestbo Tor Arne Vestbø
            jacky.y JK Yang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes