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?

CodePudding user response:

The
reference 1/f, scatter response: sugar
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.

What do you mean to set QWebView to Qt: : WA_AcceptTouchEvents mode?

CodePudding user response:

The building Lord use is baidu or offline map, online

CodePudding user response:

The
reference dawei, 4/f, 747488886 response:
offline maps or the original poster is baidu, online


Online

CodePudding user response:

Hello, I also want to load under imx6 baidu offline maps, through QT load HTML, but never after cross-compilation QWebengine and Qwebview related library, experiment a lot of version, all can not compile it, how do you put the two related library compiled, what I use is QT5.6.3, cross compiler is arm - Linux - gnueabi - g + + version 4.6.2, can leave a QQ, to communicate with you

CodePudding user response:

references 9 f xt_uav response:
hello, I also want to load under imx6 baidu offline maps, through QT load HTML, but never after cross-compilation QWebengine Qwebview related library, experiment a lot of version, all can not compile it, could you tell me how do you put the two related library compiled, what I use is QT5.6.3, cross compiler is arm - Linux - gnueabi - g + + version 4.6.2, can leave a QQ, to communicate with you

Are you sure there's QWebengine QT/lib directory of the library?

CodePudding user response:

Hello, also in QWebView load baidu map, functions are realized, but click transplanted to the development board can't drag, I solved the problem, please
  •  Tags:  
  • Qt
  • Related