Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
6.2.4
-
-
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
- duplicates
-
QTBUG-35995 Clicked signal not emitted on MouseArea when changing visibility and listening for doubleClicked
- Closed
For Gerrit Dashboard: QTBUG-102158 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
408523,4 | MouseArea: don't get stuck in doubleClick if handler caused ungrab | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
409030,2 | MouseArea: don't get stuck in doubleClick if handler caused ungrab | 6.3 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
409032,3 | MouseArea: don't get stuck in doubleClick if handler caused ungrab | tqtc/lts-5.15 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |
409033,2 | MouseArea: don't get stuck in doubleClick if handler caused ungrab | tqtc/lts-6.2 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |