I wrote an application for raspberry with qt 5.3, raspbian jessie and a 7-inch touch screen.
In my application I need to override the QWidget::event method. And everything was worked ok.
My problems start when I ported my code to raspbian stretch with the qt 5.7.1.
Now my code doesn't work because the QEvent::TouchBegin event is sent twice time.
Do you have any suggestions?
Code
Qt Code:
{ qDebug("TouchBegin"); ......... return true; } qDebug("TouchEnd"); ..... return true; } qDebug("MouseButtonPress"); ..... return true; } qDebug("MouseButtonRelease"); ....... return true; } }To copy to clipboard, switch view to plain text mode
Output
TouchBegin
TouchBegin
MouseButtonPresseds
TouchEnd
MouseButtonReleased
Bookmarks