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

Can not receive touch event after the widget that WindowFlags is Qt::Popup is closed on ubuntu20.04

XMLWordPrintable

    • efc02f9cc3 (qt/qtbase/dev) efc02f9cc3 (qt/tqtc-qtbase/dev) b0de19a831 (qt/qtbase/6.3) b0de19a831 (qt/tqtc-qtbase/6.3) b0de19a831 (qt/qtbase/6.3.1) 7380edaeb8 (qt/tqtc-qtbase/5.15) 7380edaeb8 (qt/tqtc-qtbase/5.15-vxworks)

      There is a bug in QT6.2.1. 

      The pushButton Can not receive touch event after the widget that WindowFlags is Qt::Popup is closed on ubuntu20.04

      I created a demo to reproduce it.

      reproduce step:

      1、Click the pushbutton with your finger to create a widget that WindowFlags is Qt::Popup.

      2、Tap anywhere on the screen with your finger to close the widget.

      3、Click the pushbutton with your finger again the pushbutton not responsed. But received these logs:

      qt.pointer.dispatch: delivering touch update to same window QWidgetWindow(0x55c1cba8d280, name="QWidgetClassWindow") not QWidgetWindow(0x55c1cbc90130, name="MainWindowWindow")

      qt.pointer.dispatch: delivering touch update to same window QWidgetWindow(0x55c1cba8d280, name="QWidgetClassWindow") not QWidgetWindow(0x55c1cbc90130, name="MainWindowWindow")

      qt.pointer.dispatch: delivering touch update to same window QWidgetWindow(0x55c1cba8d280, name="QWidgetClassWindow") not QWidgetWindow(0x55c1cbc90130, name="MainWindowWindow") 

       

      This is the debug information when the finger leaves the screen in the second step.

      Because the widget which WindowFlags is Qt::Popup is closed when the touch pressed, the func 
      platformWindowFromId(xcb_window_t id) will return NULL in here. It causes the func xi2ProcessTouch will not be called.

      This is a log

       

        For Gerrit Dashboard: QTBUG-102751
        # Subject Branch Project Status CR V

            srutledg Shawn Rutledge
            bihong hong bi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There is 1 open Gerrit change