点云赋值 PointCloudT::Ptr 运行时崩溃
摘要: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
卡贝天师
阅读(624)
推荐(0)
在qml中使用model给委托对象MapPolylIne的path属性赋值。
摘要:遇到两个崩溃的问题。 1、A线程中给赋值了变量 listA, 线程B中使用函数Add(QList<GeoPath> &list),由于在其函数中调用了list.at(index),所以当listA对象改变时会使得引用而来的list导致索引越界。 2、MapPolyline 中的path 可以用set
阅读全文
posted @
2018-08-18 11:39
卡贝天师
阅读(1055)
推荐(0)
qt 读取xml文件中文问题
摘要: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
卡贝天师
阅读(1102)
推荐(0)
qml 绘制高精地图之怀疑人生的加载速度
摘要:绘制高精地图时需要gps的经纬度坐标,之前的实现方式是QGeocoordinate类的经纬度变量通过json的方式在qml中使用。 以画线为例,使用方式是这样哒。 1 for(var i in vehicleMapProcess.laneMedian){ // 道路条数 2 var newMapLa
阅读全文
posted @
2018-08-01 19:43
卡贝天师
阅读(1067)
推荐(0)