When using mouseDoubleClickSequence(), or simulating a double click via press-release-press-release, in a QuickTest the TapHandler does not register the double click. It emits two tapped() signals, and doubleTapped is not emitted.
I did some digging of the code to see if I could understand what was happening, and work around it.
The issue stems from the two press events being too far apart. TapHandler wants the presses to be < 0.4 seconds apart. However, the helper in QuickTest for sending mouse events explicitly stops this from happening:
Thus making it impossible to perform a double click action with a TapHandler.
mouseDoubleClickSequence() is a shortcut for press-release-press-doubleclick-release. Thus the timestamps would be 1; 2; 503; 504; 505.
|For Gerrit Dashboard: QTBUG-102441|
|436963,6||testlib: make it possible to test double-clicks with discrete events||dev||qt/qtbase||Status: MERGED||+2||0|
|438990,2||tst_qquicktextedit: test double- and triple-clicks with delays only||dev||qt/qtdeclarative||Status: MERGED||+2||0|