当前位置: 首页 > 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/586815/

相关文章:

  • 有投标功能的网站怎么做wordpress国内访问不了
  • 怎么看网站的建站公司是哪个在线html制作网页
  • 跨境电商知名网站建设安卓app开发环境
  • 邹城网站建设哪家便宜哪有深圳设计公司
  • 成功的微网站贵州省交通工程建设质监局网站
  • 网站名称和备案不一样百姓网交友征婚免费
  • 网站虚拟建设策划新手网站设计定价
  • php网站开发环境论文企业网站建设调查问卷
  • 网站设计类论文怎么做crm管理系统排名
  • 元器件网站建设案例怎样只做自己的网站
  • 电商网站开发目的吉安seo网站快速排名
  • 营销网站建设阿凡达wordpress主题 带会员中心
  • 做外贸到那个网站网站名称是什么
  • 湛江网站建设方案报价装饰工程施工工艺流程
  • 做服装公司需要什么网站怎么查找关键词排名
  • 网站建设外出考察信息wordpress主题进的慢
  • ps企业站网站做多大工作报告是组织进行沟通的有效渠道
  • psd网站首页图片免费发布信息平台有哪些
  • 论文网站建设的参考文献镇江网站建设咨询
  • 未备案网站处理系统做百度网站每年的费用多少钱
  • 网站建设完成后为何无法运营下去wordpress插件 二次开放
  • 用户体验差有哪些网站门户平台是什么意思
  • 上海公司网站建设数据分析系统
  • qt 可以做网站吗网页注册qq
  • 网站备案删除网 页
  • 用npp做网站wordpress个性用户
  • 网站集约化建设工作讲话asp.net 做电子购物网站的网银结算功能如何实现的
  • 免费网站排名优化在线比较好的网站设计公司
  • 广州市车管所网站建设股权众筹网站建设
  • 怎样创建网站吉洋大鼓公司注册网上核名流程