MouseArea emitting additional 'pressed' signal
-
I using QML on Linux device with touch screen.
Sometimes when I pressing a MouseArea it emits another 'pressed' and 'released' signals (In addition to the original events).
I added log also to the 'clicked' signal and I saw that when the additional 'pressed' and 'released' signals are emitted the 'clicked' signal is not emitted (even though the press and release where both within the MouseArea).
Can anyone explain why does the additional signals are emitted ? -
I using QML on Linux device with touch screen.
Sometimes when I pressing a MouseArea it emits another 'pressed' and 'released' signals (In addition to the original events).
I added log also to the 'clicked' signal and I saw that when the additional 'pressed' and 'released' signals are emitted the 'clicked' signal is not emitted (even though the press and release where both within the MouseArea).
Can anyone explain why does the additional signals are emitted ? -
Hi p3c0,
The problem is that the 2nd 'pressed' and 'released' events are triggered without someone is actually pressing the MouseArea.
-
-
I'm using Qt 5.3.1 on Linux (Freescale i.mx53 with touch device).
Rectangle { width: 200 height: 200 color: "red" MouseArea { anchors.fill: parent onPressed: console.log("Pressed") onReleased: console.log("Released") onClicked: console.log("Clicked") } }
-
It doesn't happens all the time. The phenomenon reproduce once per ~15 times.
Another strange issue when it does happen - There are 'pressed' and 'released' events but no 'clicked' event. -
@aabc , I checked with Qt 5.4.1 MSVC2012 OpenGL 32bit and it works correctly.
Tried many times and able to get pressed , released and clicked signals in order.
You will not get clicked signal in one case ,
if you do press in Rectangle region (200 * 200 ) and do mouse move outside and perform mouse release.
then you will get only pressed & released. -
@aabc , I checked with Qt 5.4.1 MSVC2012 OpenGL 32bit and it works correctly.
Tried many times and able to get pressed , released and clicked signals in order.
You will not get clicked signal in one case ,
if you do press in Rectangle region (200 * 200 ) and do mouse move outside and perform mouse release.
then you will get only pressed & released. -