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

Touchscreen freezes after closing a dialog box with the WA_DeleteOnClose attribute

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 5.15.11
    • 5.15.2
    • QPA: X11/XCB
    • None
    • Linux/X11
    • 12

    Description

      Problem:

      If you open a non-modal dialog box with the WA_DeleteOnClose attribute, the touch screen no longer receives touch events as soon as the dialog box is destroyed.

       

      Test case:

      TEST1:

      • Unzip testdialog.zip, and launch the application.
      • Once launched, ONLY use the touch screen.
      • Press the "PushButton" button -> a popup appears.
      • Click elsewhere in the MainWindow to dismiss the popup:
                 - The popup disappears as expected.
                 - However, by pressing the "PushButton" button again, the popup no longer                  appears.

      TEST2:

      Comment line 22 in MainWindow.cpp (the one that sets the WA_DeleteOnClose attribute).
      Relaunch the app. Everything then works normally and the popup appears after each press of the "PushButton" button (on the other hand, this produces a memory leak).

       

      Attachments

        Issue Links

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

          Activity

            People

              srutledg Shawn Rutledge
              flegall2022 Franck LE GALL
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes