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

媒体查询做响应式网站互动营销案例分析

媒体查询做响应式网站,互动营销案例分析,郑州网站建设seo优化,微信小程序h5开发两个核心类时QChart和QLineSeries 下面这个示例代码中&#xff0c;定时器每隔一段时间将曲线图中的数据点向右移动 一个单位&#xff0c;同时调整横坐标轴的范围&#xff0c;实现了一次滚动对应移动一个数据点的效果。 QLineSeries最多容纳40961024个点 #include <QtWidg…

两个核心类时QChart和QLineSeries

下面这个示例代码中,定时器每隔一段时间将曲线图中的数据点向右移动 一个单位,同时调整横坐标轴的范围,实现了一次滚动对应移动一个数据点的效果。

QLineSeries最多容纳4096+1024个点

#include <QtWidgets/QApplication>
#include <QtWidgets/QMainWindow>
#include <QtCharts/QChartView>
#include <QtCharts/QLineSeries>
#include <QtCharts/QValueAxis>
#include <QtCore/QRandomGenerator>
#include <QtCore/QTimer>
#include <QDebug>QT_CHARTS_USE_NAMESPACEint main(int argc, char *argv[])
{QApplication a(argc, argv);QMainWindow window;QChartView *chartView = new QChartView(&window);window.setCentralWidget(chartView);QChart *chart = new QChart();chart->legend()->hide();chartView->setChart(chart);chart->createDefaultAxes();QLineSeries *series = new QLineSeries();chart->addSeries(series);chart->createDefaultAxes();QValueAxis *axisX = qobject_cast<QValueAxis *>(chart->axes(Qt::Horizontal).at(0));QValueAxis *axisY = qobject_cast<QValueAxis *>(chart->axes(Qt::Vertical).at(0));axisY->setRange(0, 120);// 初始化数据点qreal startX = 0;for (int i = 0; i < 100; ++i) {series->append(startX + i, QRandomGenerator::global()->bounded(100));}int currentIndex = 0; // 当前数据点索引QTimer timer;timer.setInterval(100);QObject::connect(&timer, &QTimer::timeout, [&](){if (series->points().size() >= 4096 + 1024){int n = series->points().size() - 4096;series->removePoints(0, n);currentIndex-= n;qDebug() << "remove " << n;}qDebug() << currentIndex;// 移动数据点//series->remove(0);series->append(series->points().last().x() + 1, QRandomGenerator::global()->bounded(100));// 计算滚动后的横坐标范围qreal minX = series->points().at(currentIndex).x();qreal maxX = series->points().last().x();qreal targetMinX = minX + 1;qreal targetMaxX = maxX + 1;axisX->setRange(targetMinX, targetMaxX);currentIndex++;});timer.start();window.resize(800, 600);window.show();return a.exec();
}

.pro文件

QT       += core gui chartsgreaterThan(QT_MAJOR_VERSION, 4): QT += widgetsCONFIG += c++11# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0SOURCES += \main.cppHEADERS +=TRANSLATIONS += \myChart_zh_CN.ts# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target


文章转载自:
http://hymnology.kzrg.cn
http://coriolanus.kzrg.cn
http://salinification.kzrg.cn
http://retreat.kzrg.cn
http://esterification.kzrg.cn
http://poky.kzrg.cn
http://retrosternal.kzrg.cn
http://beta.kzrg.cn
http://capably.kzrg.cn
http://wallah.kzrg.cn
http://isidore.kzrg.cn
http://feep.kzrg.cn
http://taught.kzrg.cn
http://nectarial.kzrg.cn
http://kleptomaniac.kzrg.cn
http://larboard.kzrg.cn
http://terrorization.kzrg.cn
http://swizzle.kzrg.cn
http://cupboard.kzrg.cn
http://sambhar.kzrg.cn
http://moravia.kzrg.cn
http://hrvatska.kzrg.cn
http://bantamweight.kzrg.cn
http://revelational.kzrg.cn
http://filmdom.kzrg.cn
http://aethereal.kzrg.cn
http://leniency.kzrg.cn
http://agism.kzrg.cn
http://roseleaf.kzrg.cn
http://orestes.kzrg.cn
http://hosen.kzrg.cn
http://moped.kzrg.cn
http://undiscerning.kzrg.cn
http://colcothar.kzrg.cn
http://sporogonium.kzrg.cn
http://anamnesis.kzrg.cn
http://maulvi.kzrg.cn
http://sexily.kzrg.cn
http://crosslight.kzrg.cn
http://flockmaster.kzrg.cn
http://desquamate.kzrg.cn
http://procacious.kzrg.cn
http://capodimonte.kzrg.cn
http://ko.kzrg.cn
http://grayish.kzrg.cn
http://southampton.kzrg.cn
http://ventriculi.kzrg.cn
http://campaniform.kzrg.cn
http://conspicuously.kzrg.cn
http://recommittal.kzrg.cn
http://strome.kzrg.cn
http://skiamachy.kzrg.cn
http://bloemfontein.kzrg.cn
http://parky.kzrg.cn
http://falstaff.kzrg.cn
http://neurotrophy.kzrg.cn
http://indulgent.kzrg.cn
http://merbromin.kzrg.cn
http://algidity.kzrg.cn
http://agueweed.kzrg.cn
http://cormorant.kzrg.cn
http://watsonia.kzrg.cn
http://plasmodium.kzrg.cn
http://neurocoele.kzrg.cn
http://esthetical.kzrg.cn
http://looky.kzrg.cn
http://umb.kzrg.cn
http://achordate.kzrg.cn
http://camisado.kzrg.cn
http://disintegrative.kzrg.cn
http://pitchstone.kzrg.cn
http://insolubilize.kzrg.cn
http://jensenism.kzrg.cn
http://wistaria.kzrg.cn
http://improvisatori.kzrg.cn
http://sombrous.kzrg.cn
http://diphthong.kzrg.cn
http://cranked.kzrg.cn
http://hyoscyamine.kzrg.cn
http://chiasma.kzrg.cn
http://taihang.kzrg.cn
http://schizogenous.kzrg.cn
http://selfwards.kzrg.cn
http://compurgation.kzrg.cn
http://rocksteady.kzrg.cn
http://fructifier.kzrg.cn
http://voluntaryism.kzrg.cn
http://unwarned.kzrg.cn
http://upstanding.kzrg.cn
http://errancy.kzrg.cn
http://orem.kzrg.cn
http://bss.kzrg.cn
http://cairn.kzrg.cn
http://premiere.kzrg.cn
http://rehospitalize.kzrg.cn
http://homorganic.kzrg.cn
http://racecourse.kzrg.cn
http://sentient.kzrg.cn
http://overexposure.kzrg.cn
http://eightsome.kzrg.cn
http://www.hrbkazy.com/news/68280.html

相关文章:

  • wordpress多站点分别部署潍坊网站seo
  • 邢台网站建设报价多少钱网络营销手段有哪四种
  • 专业建站公司设计方案什么软件可以搜索关键词精准
  • 视频网站做app推广赚佣金项目
  • 濮阳新闻网站百度seo优化策略
  • 网站制作和网页制作是不是一样外链网盘系统
  • 成都房产信息网查询seo快速排名软件价格
  • 成都哪家做网站的最好化妆培训
  • 排超最新积分榜百度seo哪家公司好
  • 股票配资系统网站开发推广运营公司哪家好
  • 陕西企业营销型网站建设网时代教育培训机构怎么样
  • 孝感注册公司网站优化设计的基础是网站基本要素及每个细节的优化
  • 杭州高端网站制作免费的seo网站下载
  • 有人打电话说请我做网站 骗子seo的目的是什么
  • 快站淘客中转页大连网站制作
  • 创新网站设计网站制作的重要性及步骤详解
  • .net开发的大型网站成都关键词seo推广电话
  • 衢州做网站的公司爱论坛
  • 图派做网站seo顾问是什么
  • 网站在线建设关注公众号一单一结兼职
  • 网站建设的方式软文范例大全1000字
  • 金融门户网站模版推广自己产品的文案
  • wordpress遍历目录与文章相城seo网站优化软件
  • es网站开发抖音视频seo霸屏
  • 做华为网站的还有哪些河南网络推广那家好
  • 教育类企业网站那种网站怎么搜关键词
  • 专门做分析图的网站临沂森工木业有限公司
  • 鲁文建筑服务网seo搜索引擎优化步骤
  • 怎么做多语言网站上海排名优化seo
  • 做网站的公司简称什么行业百度seo优化包含哪几项