PDA

View Full Version : QAction slot called twice if triggered with a touch screen



maitai
20th February 2013, 09:44
Hello,

I am testing with windows7/msvc2010-32bits/qt5.0.1

I have several QMenu (context menus through right-click) containing some QActions. If I use the mouse no problem. If I touch the screen to trigger the action, then my slot is called twice. The only thing I found to fix this is to disable the action just when I enter the first time in the slot.... but of course I don't want to do that on all the menus and actions...

The strange thing is that using the mouse, the slot is called only once as it should be. It is called twice only if I "tap" the menu entry with my finger. Is this normal behavior and is there eventually something I can do to avoid it?

Thanks

maitai
20th February 2013, 13:41
In fact it does that on everything, including buttons in dialogboxes. Each time you click on something "with-a-touchscreen-tap" the event is send twice. Sounds like a bug in qt5.0.1...

anthonysaunier
9th April 2013, 09:37
Hello,

I have the same problem, did you found a solution ?

Thanks

christopher.j.meacham
10th April 2013, 17:01
Ironically, I am having the opposite problem in Qt 4.7.4... I tap on my touchscreen and nothing happens. No clicked() signal is called at all. I'm hoping that your fix will shed light on my issue, as well.