摘要:
PointCloudT::Ptr cloud; cloud.reset(new PointCloudT); cloud->points.resize(500);for(int index =0;index <500;index++){ cloud->point[index].x = 1.0; clo
阅读全文
posted @ 2018-08-27 15:05
卡贝天师
阅读(618)
推荐(0)
摘要:
遇到两个崩溃的问题。 1、A线程中给赋值了变量 listA, 线程B中使用函数Add(QList<GeoPath> &list),由于在其函数中调用了list.at(index),所以当listA对象改变时会使得引用而来的list导致索引越界。 2、MapPolyline 中的path 可以用set
阅读全文
posted @ 2018-08-18 11:39
卡贝天师
阅读(981)
推荐(0)
摘要:
1、保存文件格式为UTF-8 2、文件流打开时设置 QFile file(fileName); if (!file.open(QIODevice::ReadOnly)) { qDebug() << "XmlPrivate load fail" << fileName; return false; }
阅读全文
posted @ 2018-08-02 10:27
卡贝天师
阅读(1093)
推荐(0)
摘要:
绘制高精地图时需要gps的经纬度坐标,之前的实现方式是QGeocoordinate类的经纬度变量通过json的方式在qml中使用。 以画线为例,使用方式是这样哒。 1 for(var i in vehicleMapProcess.laneMedian){ // 道路条数 2 var newMapLa
阅读全文
posted @ 2018-08-01 19:43
卡贝天师
阅读(1054)
推荐(0)
摘要:
qt中存在以下几种路径的使用方式。 1、qrc内置资源在应用程序中属于只读的资源,作为应用程序的一部分,而不是在一个文件夹中与app分离。资源文件在.qrc文件中的路径如 <file>img/car.png</file>所示,那么我们在使用路径时可以这样使用qfile file(“:/imag/ca
阅读全文
posted @ 2018-07-31 17:25
卡贝天师
阅读(1340)
推荐(0)
摘要:
webview 本身没有qwebchannel 的接口,只能通过WebSocketServer 间接的访问。 参考 https://stackoverflow.com/questions/51313111/qt-webview-and-webchannel-over-websockets-in-qm
阅读全文
posted @ 2018-07-19 14:33
卡贝天师
阅读(653)
推荐(0)
摘要:
参考 http://www.w3school.com.cn/xmldom/dom_document.asp A.xml 2、读取数据 3、html 引用 4、结果
阅读全文
posted @ 2018-07-18 14:18
卡贝天师
阅读(216)
推荐(0)
摘要:
1、jdk 下载: 下载地址:http://www.oracle.com/technetwork/java/javase/overview/index.html windows 平台不要下载java se10.0,我刚开始安装好这个。环境变量也设置好了,但是安装sdk的时候一直监测不到jdk存在。
阅读全文
posted @ 2018-07-06 16:16
卡贝天师
阅读(421)
推荐(0)
摘要:
1、使用多position画图时,图形不受控制的问题? 在变量属性设置时Attribute中的attributeBaseType 数据类型一定要和 Buffer中data 数据类型一定要相同。 例如 vertexBaseType: Attribute.UnsignedInt 对应 Uint32Arr
阅读全文
posted @ 2018-06-15 16:34
卡贝天师
阅读(327)
推荐(0)
摘要:
参考博客 http://www.cnblogs.com/skyfsm/p/6840202.html 针对 模块计算机类型“X64”与目标计算机类型“X86”这个问题,我使用cmake 对环境的工程进行设置;主要是 ..\..\cmake311\bin\cmake.exe -D WIN32=1 -G
阅读全文
posted @ 2018-06-12 18:25
卡贝天师
阅读(131)
推荐(0)