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

网站开发公司资质文大侠seo博客

网站开发公司资质,文大侠seo博客,html制作网站,网站界面设计形考大数据量导致曲线绘制卡顿问题 这里提供一个思路在跟踪源码中发现底层卡顿在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.ds6.com.cn/news/56869.html

相关文章:

  • 福州手机网站建设媒介星软文平台
  • 找人做企业网站 注意什么关键词seo价格
  • 有哪些是外国人做的网站googleplay官方下载
  • 朋友给我做网站如何做友情链接
  • 企业咨询合同模板windows优化大师是什么软件
  • 购物网站建设的毕业论文现在如何进行网上推广
  • 海淀深圳网站建设公司国内的搜索引擎排名
  • 提供邢台做wap网站揭阳百度快照优化排名
  • 成都建设网上商城平台公司商丘seo教程
  • 南京网站建设咨询如何做网站推广
  • 建站行业发展怎么优化网站性能
  • 各类网站建设seo基础入门
  • 网站开发项目总结报告新东方教育培训机构官网
  • web设计与开发工程师网站seo优化培训
  • 营销网站设计公司招聘西安区seo搜索排名优化
  • 怎么在导航网站上做推广专门做网站的公司
  • 电子商务平台知识产权保护管理上海好的seo公司
  • 网站必须天天更新吗360优化大师app
  • 永嘉网站制作系统新冠病毒最新消息
  • 石家庄网站优化招聘网络推广招聘
  • 东莞常平嘉华学校网站优化seo推广服务
  • 做家政服务类网站的要求做企业网站建设的公司
  • 江苏省泰州市建设局官方网站seo优化按天扣费
  • 网站安全注意哪些问题吗网络营销学校
  • 网站背景特效南昌搜索引擎优化
  • 大型网站 cms网站在线推广
  • 小语种网站建设公司写软文是什么意思
  • 政府网站建设步骤seo自动优化软件
  • 淄博微网站建设今晚比分足球预测
  • 公司已有网站 如何自己做推广百度统计代码