PDA

View Full Version : Touch support for not embedded QT on QWebView and QPushButton and QWidgets



zenick
29th September 2013, 23:18
Hello, i'm needing a help, read and searched about this problem and not founded a solution. I'm developing a kiosk browser and it has not worked for touchscreen monitors, simply the QWebView component has not any action of touch on links and input elements, for example.

Environment: QT 5.1.1, MinGW compiler on Windows 7 32 and 64bits, Windows 8 32 and 64bits.

I tried use QWebView>setAttribute(Qt::WA_AcceptTouchEvents); but not worked.

I hope anyone can help me, it is a primordial feature for this software and not know what i do.

zenick
2nd October 2013, 18:38
I think the component QWebView not recognize touch events, so, i solved this problem setting QWebView>setAttribute(Qt::WA_AcceptTouchEvents, false); to QWebView receive the touch event as mouse events.

This way solved my problem, thanks.