在嵌入式Linux中,QT程式通過QWebView加載了百度地圖,但是無法拖動(在PC下所有的功能都實作了)。看百度地圖JSAPI2.0的檔案說:
touchstart {type, target, point,pixel} 觸摸開始時觸發此事件,僅適用移動設備
touchmove {type, target, point,pixel} 觸摸移動時觸發此事件,僅適用移動設備
touchend {type, target, point,pixel} 觸摸結束時觸發此事件,僅適用移動設備
longpress {type, target, point,pixel} 長按事件,僅適用移動設備

需要在移動端JS要使用這幾個信號,但是我一直感應不到這幾個信號,請問是什么原因呀
uj5u.com熱心網友回復:
To receive touch events, widgets have to have the Qt::WA_AcceptTouchEvents attribute set and graphics items need to have the acceptTouchEvents attribute set to true.uj5u.com熱心網友回復:
你的意思是要把QWebView設定為Qt::WA_AcceptTouchEvents模式嗎?uj5u.com熱心網友回復:
你的意思是要把QWebView設定為Qt::WA_AcceptTouchEvents模式嗎?
uj5u.com熱心網友回復:
樓主用的是百度離線地圖還是,在線的uj5u.com熱心網友回復:
在線的
uj5u.com熱心網友回復:
你好,我也想在imx6下加載百度離線地圖,通過QT加載html,但是交叉編譯后始終沒有QWebengine和Qwebview相關庫,實驗了好多版本,都編譯不出來,請問下您是怎么把這兩個相關庫編譯出來的,我用的是QT5.6.3,交叉編譯器用的是arm-linux-gnueabi-g++ 4.6.2版本。能不能留個QQ,和你交流下uj5u.com熱心網友回復:
你確定QT的/lib目錄下有QWebengine的庫嗎?
uj5u.com熱心網友回復:
您好,同樣也是在QWebView中加載百度地圖,功能都實作了,但是移植到開發板中無法拖拽點擊,請問樓主解決了這個問題嗎轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/35548.html
標籤:Qt
