当前位置: 首页 > news >正文

网站建设总结与心得体会奥维网络高端网站建设公司

网站建设总结与心得体会,奥维网络高端网站建设公司,建筑人才网招聘官网,西固网站建设平台大数据量导致曲线绘制卡顿问题 这里提供一个思路在跟踪源码中发现底层卡顿在vector的resize() 此处扩容中 所以尽量使用下面的接口 /*! \overloadAdds the provided data point as \a key and \a value to the current data.Alternatively, you can also access and modify t…

大数据量导致曲线绘制卡顿问题
这里提供一个思路在跟踪源码中发现底层卡顿在vector的resize() 此处扩容中

所以尽量使用下面的接口

/*! \overloadAdds the provided data point as \a key and \a value to the current data.Alternatively, you can also access and modify the data directly via the \ref data method, whichreturns a pointer to the internal data container.
*/
void QCPGraph::addData(double key, double value)
{mDataContainer->add(QCPGraphData(key, value));
}

而不是使用addData这个接口,还有setData这个接口

/*! \overloadAdds the provided points in \a keys and \a values to the current data. The provided vectorsshould have equal length. Else, the number of added points will be the size of the smallestvector.If you can guarantee that the passed data points are sorted by \a keys in ascending order, youcan set \a alreadySorted to true, to improve performance by saving a sorting run.Alternatively, you can also access and modify the data directly via the \ref data method, whichreturns a pointer to the internal data container.
*/
void QCPGraph::addData(const QVector<double> &keys, const QVector<double> &values, bool alreadySorted)
{if (keys.size() != values.size())qDebug() << Q_FUNC_INFO << "keys and values have different sizes:" << keys.size() << values.size();const int n = qMin(keys.size(), values.size());QVector<QCPGraphData> tempData(n);QVector<QCPGraphData>::iterator it = tempData.begin();const QVector<QCPGraphData>::iterator itEnd = tempData.end();int i = 0;while (it != itEnd){it->key = keys[i];it->value = values[i];++it;++i;}mDataContainer->add(tempData, alreadySorted); // don't modify tempData beyond this to prevent copy on write
}
http://www.yayakq.cn/news/739468/

相关文章:

  • 怎样切图做网站简单的网页制作代码
  • 医院手机网站模板亳州电商网站建设
  • 怎么添加网站购买网站要多少钱
  • 长春做网站搜吉网传媒html5 后台网站模板
  • 电子商务网站建设课程设计总结网站开发转软件开发
  • 青州网站建设青州沃然建站平台官网
  • 沈阳做平板网站北京做网站商标的公司
  • 祝贺网站改版wordpress页面属性排序
  • 网站建设套餐价格徐老师在那个网站做发视频
  • 什么是网站上线检测手表网站功能设计
  • 长春美容网站建设深圳高端保姆公司
  • 图书馆网站建设与评价研究网上做设计兼职哪个网站好点
  • php成品网站下载google搜索引擎
  • h5网站还有哪些个人网站源码下载
  • 做的网站怎么上传到网上运行视频网站界面设计
  • 福田区住房和建设局网站wordpress同步到微信公众号
  • 创建网站的软件什么梦农业推广硕士
  • 高校官方网站建设南京互联网公司
  • 淄博网站制作高端形象网站头尾一样的怎么做最好
  • 北京网站建设模板下载中国国家住房和城乡建设部网站首页
  • wordpress 企业网站制作环保网站 源码
  • 电商网站营销网站建设 系统 排名
  • 当当网电子商务网站建设特点网站建设对帮助信息的设置
  • 杭州市建设工程公示网站电子商务网站建站流程
  • 个性化定制网站的特点网站维护 费用
  • 住房和城乡建设部标准定额司网站网络服务遇到问题请稍后再试吧
  • 国外服装设计师网站教育培训机构排名
  • 如何设置网站佛山搜索引擎优化
  • 免费的网站推广软件下载产品设计毕业作品集
  • 上海集团网站建设公司好网站适配移动端和PC端