Home > Mobile > On the ARM, the baidu map function such as drag and drop
On the ARM, the baidu map function such as drag and drop
Time:12-06
In the embedded Linux, QT program through QWebView loaded the baidu map, but you can't drag (all functions are realized under PC), see baidu map document JSAPI2.0 said:
Touchstart {type, target, point, pixel} touch trigger this event at the beginning, only apply to mobile devices Touchmove {type, target, point, pixel} touch while moving, that raised the event is only available on mobile devices Touchend {type, target, point, pixel} at the end of the touch trigger this event, only apply to mobile devices Longpress {type, target, point, pixel} long press events, only apply to mobile devices
Need to JS to use on the mobile end these signals, but I couldn't have been induced these signals, excuse me what reason be
CodePudding user response:
To receive touch events, widgets have and the Qt: : WA_AcceptTouchEvents attribute set and graphics items need To have the acceptTouchEvents attribute set To true.
CodePudding user response:
What do you mean to set QWebView to Qt: : WA_AcceptTouchEvents mode?