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