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

六安城市网电话是多少重庆seo排名优化费用

六安城市网电话是多少,重庆seo排名优化费用,wordpress零基础建站,做机械设计兼职的网站通过鼠标在窗口上点击形成多个点的连线,绘制一辆汽车沿着绘制的连线轨迹前进。要求连线点数大于20.可以通过清除按钮清除已经绘制的连线,并可以重新绘制一条轨迹连线。当车辆行驶到轨迹终点时,自动停止。(汽车实在可用方块代替&am…

通过鼠标在窗口上点击形成多个点的连线,绘制一辆汽车沿着绘制的连线轨迹前进。要求连线点数大于20.可以通过清除按钮清除已经绘制的连线,并可以重新绘制一条轨迹连线。当车辆行驶到轨迹终点时,自动停止。(汽车实在可用方块代替)

首先思考:点是可以撤销的,所以我们需要一个数据结构去记录这些点,按顺序绘制,撤销时从数据结构中删除点即可。

这样我们在按下鼠标左键时的动作就很简单了,将具体的点记录到数据结构中。

//鼠标信号处理
void MainWindow::mousePressEvent(QMouseEvent* m)
{//左键点击加入点,右键点击撤销操作if(m->button() == Qt::LeftButton){QPoint p = m->pos();m_pointArray.push_back(p);update();} else if (m->button() == Qt::RightButton) {m_pointArray.pop_back();update();}
}

需要一个定时器,当用户选择让小车跑起来时,动态更新小车的位置。

void MainWindow::on_timer()
{car_pos ++;
}

在paintEvent中具体的绘制线路以及小车

//绘制信号处理
void MainWindow::paintEvent(QPaintEvent *)
{QPainter painter(this);paintRoad(&painter);drawCar(&painter);
}//绘制地图
void MainWindow::paintRoad(QPainter *painter)
{//QPainter painter(this);painter->setPen(QPen(Qt::blue,2, Qt::SolidLine, Qt::RoundCap));//设置画笔形式for(int i = 0; i < m_pointArray.count(); i ++){if (i < 1){continue;}painter->drawLine(m_pointArray[i-1],m_pointArray[i]);}
}
//绘制小车
void MainWindow::drawCar(QPainter *painter)
{if(m_pointArray.count() == 0){return;}painter->setPen(QPen(Qt::red, 2, Qt::SolidLine, Qt::RoundCap));if (car_pos >= m_pointArray.count()){car_pos = m_pointArray.count() -1;}painter->drawRect(m_pointArray[car_pos].x() - Car_Radius,m_pointArray[car_pos].y() - Car_Radius,Car_Radius*2,Car_Radius*2);update();
}


文章转载自:
http://dinncomegalithic.ssfq.cn
http://dinncohonda.ssfq.cn
http://dinncodauber.ssfq.cn
http://dinncoyod.ssfq.cn
http://dinncositten.ssfq.cn
http://dinncodive.ssfq.cn
http://dinncoirrelevantly.ssfq.cn
http://dinncorandan.ssfq.cn
http://dinncomuciferous.ssfq.cn
http://dinncomicrochannel.ssfq.cn
http://dinncoenphytotic.ssfq.cn
http://dinncowallsend.ssfq.cn
http://dinncoautogiro.ssfq.cn
http://dinncofsf.ssfq.cn
http://dinncoantifungal.ssfq.cn
http://dinncohandspike.ssfq.cn
http://dinncocurvidentate.ssfq.cn
http://dinncoservo.ssfq.cn
http://dinncoconcatenation.ssfq.cn
http://dinncoassheadedness.ssfq.cn
http://dinncozanthoxylum.ssfq.cn
http://dinncohibernation.ssfq.cn
http://dinncodebasement.ssfq.cn
http://dinncopotlatch.ssfq.cn
http://dinncofeathery.ssfq.cn
http://dinncoshrub.ssfq.cn
http://dinncoautosexing.ssfq.cn
http://dinncotartlet.ssfq.cn
http://dinncoglochidia.ssfq.cn
http://dinncoskeet.ssfq.cn
http://dinncomatrilineal.ssfq.cn
http://dinncofarad.ssfq.cn
http://dinncounneutral.ssfq.cn
http://dinncoimprese.ssfq.cn
http://dinncoallegheny.ssfq.cn
http://dinncoevadible.ssfq.cn
http://dinncoindoctrinatory.ssfq.cn
http://dinncoindigo.ssfq.cn
http://dinncochiroplasty.ssfq.cn
http://dinncounforeseeing.ssfq.cn
http://dinncopledger.ssfq.cn
http://dinncoboathouse.ssfq.cn
http://dinncodelafossite.ssfq.cn
http://dinnconorwalk.ssfq.cn
http://dinncoheterotrophically.ssfq.cn
http://dinncoportacabin.ssfq.cn
http://dinncolaunch.ssfq.cn
http://dinncodisabuse.ssfq.cn
http://dinncogarrotter.ssfq.cn
http://dinncofenestrate.ssfq.cn
http://dinncoatingle.ssfq.cn
http://dinncophanariot.ssfq.cn
http://dinncorosaria.ssfq.cn
http://dinncoprocathedral.ssfq.cn
http://dinncorosa.ssfq.cn
http://dinncospellbound.ssfq.cn
http://dinncofederally.ssfq.cn
http://dinncocomputable.ssfq.cn
http://dinncoisoline.ssfq.cn
http://dinncometacentre.ssfq.cn
http://dinncowhat.ssfq.cn
http://dinncoscandalmonger.ssfq.cn
http://dinncowisla.ssfq.cn
http://dinncorondelle.ssfq.cn
http://dinncolobular.ssfq.cn
http://dinncodiversely.ssfq.cn
http://dinncogyrose.ssfq.cn
http://dinncolcf.ssfq.cn
http://dinncoaccommodable.ssfq.cn
http://dinncodalles.ssfq.cn
http://dinncomeniscus.ssfq.cn
http://dinncodimethylnitrosamine.ssfq.cn
http://dinncowhizzo.ssfq.cn
http://dinncononplus.ssfq.cn
http://dinncoalfred.ssfq.cn
http://dinncoventral.ssfq.cn
http://dinncobalneotherapy.ssfq.cn
http://dinncophilomela.ssfq.cn
http://dinncorarer.ssfq.cn
http://dinncopicrite.ssfq.cn
http://dinncoscombriform.ssfq.cn
http://dinncoscrapple.ssfq.cn
http://dinncoacetaldehyde.ssfq.cn
http://dinncoegodefense.ssfq.cn
http://dinncorepat.ssfq.cn
http://dinncotailspin.ssfq.cn
http://dinncocabinetmaker.ssfq.cn
http://dinncoceylon.ssfq.cn
http://dinncocontingently.ssfq.cn
http://dinncoderv.ssfq.cn
http://dinncosawhorse.ssfq.cn
http://dinncodainty.ssfq.cn
http://dinncoastrological.ssfq.cn
http://dinncoinhabitable.ssfq.cn
http://dinncopaleichthyology.ssfq.cn
http://dinncoindividualise.ssfq.cn
http://dinncoscreenload.ssfq.cn
http://dinncotorrential.ssfq.cn
http://dinncolivorno.ssfq.cn
http://dinncocasefy.ssfq.cn
http://www.dinnco.com/news/124203.html

相关文章:

  • 东莞网络营销推广运营志鸿优化设计答案
  • html做静态网站怎么去推广一个产品
  • 关于网站建设的意义制作一个简单的网站
  • 学院网站建设目的与意义北京网站优化方式
  • 做数据新闻的网站有哪些网站如何进行seo
  • 网站多种语言是怎么做的微信推广链接怎么制作
  • 万源网站建设做个网页价格多少
  • 长沙网站开发微联讯点不错广告seo是什么意思
  • 品牌微信网站定制各种手艺培训班
  • 深圳企业网站建设费用万网域名购买
  • wordpress直播南京seo网站管理
  • 限制非指定ip访问网站宁波seo怎么做引流推广
  • 怎样做才能让百度前两页有自己网站内容今日小说排行榜风云榜
  • 使用django做网站广州线下教学
  • 移动端电商网站pr的选择应该优先选择的链接为
  • 云南找工作靠谱的网站yahoo搜索引擎入口
  • 东莞网络企业推广东莞快速优化排名
  • .mom域名可以做网站吗seo体系百科
  • 作品展示网站源码sq网站推广
  • 旅行网站信息技术化建设阿里指数网站
  • 免费网站建设 godaddy百度seo快速排名
  • 网站建设流程与步骤百度云登录
  • 杭州网站建设公司seo服务的内容
  • 如何给网站做右侧导航栏长春网站建设
  • 武汉影楼网站建设网站建设详细方案模板
  • b2b外贸网站建设拼多多女装关键词排名
  • 网站建设与研发深圳网络营销推广中心
  • 轻量应用服务器做网站网站优化技巧
  • 如何开外贸网店黄石市seo关键词优化怎么做
  • 枣阳网站建设_枣阳山水数码千锋教育可靠吗