使用QWebEngineView加载本地html以及在线地图实例
Qt5.5之后使用新的QWebEngineView代替了QWebKit。加载数据的方式也由同步变成了异步。load函数原型:load(const QUrl &url)QFile file(htmlPath);//直接加载本地html文件,外部对象由本地文件的相对路径查找,因此不需要设置if (!file.exists()){ return;}this->load(...
原创
2019-09-09 11:07:24 ·
6668 阅读 ·
2 评论