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

Click signal not emitted in MouseArea after DoubleClicked is emitted and tab changed

    XMLWordPrintable

Details

    • Windows
    • 089c3b15b9 (qt/qtdeclarative/dev) 089c3b15b9 (qt/tqtc-qtdeclarative/dev) d4021a8d62 (qt/tqtc-qtdeclarative/5.15) 11ce4362e7 (qt/qtdeclarative/6.3) 11ce4362e7 (qt/tqtc-qtdeclarative/6.3)

    Description

      Hello,

      There is an issue with the Clicked signal of a MouseArea when changing to a different tab and listening for the DoubleClicked signal. If the tab is changed on a DoubleClicked signal, then one switches back to the original tab, the Clicked signal will not be emitted from the MouseArea on the first click. 

      I believe this is likely related to a bug report for Qt 5.2.0 as they are very similar (https://bugreports.qt.io/browse/QTBUG-35995) however the code presented in this bug report works as expected in Qt 6.2.4.

      Attached is an example of code which will replicate the issue seen in Qt 6.2.4. Initially the Clicked and DoubleClicked signals are emitted as expected. But, once the DoubleClicked signal is received and the tab is changed, if one changes back to the first tab and clicks the MouseArea then the Clicked signal will not be emitted. The clicked signal will function normally after the first Clicked signal is skipped. There does not appear to be anything wrong with the DoubleClicked signal. 

      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
              benjamin.hadra Benjamin Hadra
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews