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

网站项目建设策划书流程湖南网站seo推广

网站项目建设策划书流程,湖南网站seo推广,人人秀h5制作教程,企业网站推广怎么做程序示例精选 VSQtC旅游景区地图导航 如需安装运行环境或远程调试&#xff0c;见文章底部个人QQ名片&#xff0c;由专业技术人员远程协助&#xff01; 前言 这篇博客针对<<VSQtC旅游景区地图导航>>编写代码&#xff0c;代码整洁&#xff0c;规则&#xff0c;易读。…

  程序示例精选

VS+Qt+C++旅游景区地图导航

如需安装运行环境或远程调试,见文章底部个人QQ名片,由专业技术人员远程协助!

前言

这篇博客针对<<VS+Qt+C++旅游景区地图导航>>编写代码,代码整洁,规则,易读。 学习与应用推荐首选。


文章目录

一、所需工具软件

二、使用步骤

        1. 引入库

        2. 代码实现

        3. 运行结果

三、在线协助

一、所需工具软件

1. VS, Qt

2. C++

二、使用步骤

1.引入库

#include "MainWindow.h"
#include<iostream>#include<qDebug>
#include<QFile>
#include <QBitmap>
#include <QPainter>
#include<QImage>
#include<QPixmap>
#include <QGraphicsScene>
#include <QGraphicsView>
#include <QPointF>
#include <QLineF>

2. 代码实现

代码如下:

.h*************************************
#pragma once#include <QtWidgets/QMainWindow>
#include "ui_MainWindow.h"#include <qDebug>class MainWindow : public QMainWindow
{Q_OBJECTpublic:MainWindow(QWidget *parent = Q_NULLPTR);protected:private:Ui::MainWindowClass ui;private slots:void OnSearch();void mapBackGround();void initStyleSheetTitle();void paintEvent(QPaintEvent* event);void initStyleSheetMapButton();void initStyleSheetButton();void initStyleSheetLabel();};.cpp********************************
MainWindow::MainWindow(QWidget *parent): QMainWindow(parent)
{ui.setupUi(this);QObject::connect(ui.pushButton_7, SIGNAL(clicked()), this, SLOT(OnSearch()));ui.frame->setFrameStyle(QFrame::NoFrame);ui.frame_3->setFrameStyle(QFrame::NoFrame);
}void MainWindow::mouseDoubleClickEvent(QMouseEvent* event)
{int x = pos.x();int y = pos.y();qDebug() << "Double clicked at (" << x << "," << y << ")";
}void MainWindow::OnSearch()
{std::cout << "modelRun" << std::endl;QString startPos = ui.comboBox->currentText();QString endPos = ui.comboBox_2->currentText();qDebug() << "startPos: " << startPos;qDebug() << "endPos: " << endPos;if (startPos == QStringLiteral("孔子文化园") | startPos == QStringLiteral("碰碰车")){qDebug() << QStringLiteral("孔子文化园") ;// 添加两个点坐标QPointF point1(165, 228);QPointF point2(271, 218);QPointF point3(310, 95);// 设置GraphicsView的大小ui.graphicsView->setRenderHint(QPainter::Antialiasing); // 设置抗锯齿渲染ui.graphicsView->setAlignment(Qt::AlignLeft | Qt::AlignTop); // 设置对齐方式ui.graphicsView->setResizeAnchor(QGraphicsView::AnchorUnderMouse); // 设置缩放锚点为鼠标位置ui.graphicsView->setDragMode(QGraphicsView::ScrollHandDrag); // 设置拖拽模式为滚动手势拖拽QPen pen(Qt::red); // 设置线条颜色为红色pen.setWidth(2);   // 设置线宽为2// 在graphicsView_2的坐标系下绘制圆int radius = 25;int borderWidth = 5; // 壁厚pen.setWidth(borderWidth); // 设置线宽scene->addEllipse(point1.x() - (radius - borderWidth),point1.y() - (radius - borderWidth),(radius - borderWidth) * 2,(radius - borderWidth) * 2,pen, QBrush(Qt::NoBrush));scene->addEllipse(point2.x() - (radius - borderWidth),point2.y() - (radius - borderWidth),(radius - borderWidth) * 2,(radius - borderWidth) * 2,pen, QBrush(Qt::NoBrush));scene->addEllipse(point3.x() - (radius - borderWidth),point3.y() - (radius - borderWidth),(radius - borderWidth) * 2,(radius - borderWidth) * 2,pen, QBrush(Qt::NoBrush));// 绘制线段scene->addLine(QLineF(point1, point2), pen);scene->addLine(QLineF(point2, point3), pen);}}void MainWindow::initStyleSheetTitle()
{QString cssStr = "./style/style_label_title.css";QFile file(cssStr);if (file.open(QFile::ReadOnly)){QString qss = QLatin1String(file.readAll());ui.label->setStyleSheet(qss);file.close();}else {qDebug() << "Failed to open CSS file: " << file.fileName();}}void MainWindow::mapBackGround()
{QString cssStr = "./style/style_frame_mapBG.css";QString qss;QFile file(cssStr);if (file.open(QFile::ReadOnly)){qss = QLatin1String(file.readAll());//ui.frame_2->setStyleSheet(qss);file.close();}else {qDebug() << "Failed to open CSS file: " << file.fileName();}
}void MainWindow::initStyleSheetButton()
{QString cssStr = "./style/style_pushButton.css";QString qss;QFile file(cssStr);if (file.open(QFile::ReadOnly)){qss = QLatin1String(file.readAll());ui.pushButton_7->setStyleSheet(qss);file.close();}else {qDebug() << "Failed to open CSS file: " << file.fileName();}}void MainWindow::initStyleSheetMapButton()
{QString cssStr = "./style/style_pushButton_map.css";QString qss;QFile file(cssStr);if (file.open(QFile::ReadOnly)){qss = QLatin1String(file.readAll());//ui.pushButton_3->setStyleSheet(qss);//ui.pushButton_4->setStyleSheet(qss);//ui.pushButton_5->setStyleSheet(qss);//ui.pushButton_6->setStyleSheet(qss);file.close();}else {qDebug() << "Failed to open CSS file: " << file.fileName();}}

3. 运行结果

三、在线协助:

如需安装运行环境或远程调试,见文章底部个人 QQ 名片,由专业技术人员远程协助!
1)远程安装运行环境,代码调试
2)Qt, C++, Python入门指导
3)界面美化
4)软件制作

当前文章连接:Python+Qt桌面端与网页端人工客服沟通工具_alicema1111的博客-CSDN博客

博主推荐文章:python人脸识别统计人数qt窗体-CSDN博客

博主推荐文章:Python Yolov5火焰烟雾识别源码分享-CSDN博客

                         Python OpenCV识别行人入口进出人数统计_python识别人数-CSDN博客

个人博客主页:alicema1111的博客_CSDN博客-Python,C++,网页领域博主

博主所有文章点这里alicema1111的博客_CSDN博客-Python,C++,网页领域博主


文章转载自:
http://twilight.rgxf.cn
http://beneficence.rgxf.cn
http://outvote.rgxf.cn
http://graphology.rgxf.cn
http://intracity.rgxf.cn
http://gorblimey.rgxf.cn
http://ideation.rgxf.cn
http://supercritical.rgxf.cn
http://phenomenize.rgxf.cn
http://drugmaker.rgxf.cn
http://polyphonist.rgxf.cn
http://lustiness.rgxf.cn
http://italiote.rgxf.cn
http://itn.rgxf.cn
http://vanadious.rgxf.cn
http://rajasthan.rgxf.cn
http://cortices.rgxf.cn
http://nerc.rgxf.cn
http://bankroll.rgxf.cn
http://diarize.rgxf.cn
http://doll.rgxf.cn
http://algate.rgxf.cn
http://houseplace.rgxf.cn
http://adoze.rgxf.cn
http://piquet.rgxf.cn
http://undergrown.rgxf.cn
http://cougar.rgxf.cn
http://interlope.rgxf.cn
http://prebend.rgxf.cn
http://internet.rgxf.cn
http://hyperchromic.rgxf.cn
http://violin.rgxf.cn
http://surge.rgxf.cn
http://coalyard.rgxf.cn
http://snazzy.rgxf.cn
http://addible.rgxf.cn
http://barefoot.rgxf.cn
http://exabyte.rgxf.cn
http://woolgathering.rgxf.cn
http://collusion.rgxf.cn
http://repone.rgxf.cn
http://cryochemical.rgxf.cn
http://ceraunograph.rgxf.cn
http://monacan.rgxf.cn
http://citizenhood.rgxf.cn
http://exarticulation.rgxf.cn
http://aquiculture.rgxf.cn
http://rapist.rgxf.cn
http://blown.rgxf.cn
http://sonolyze.rgxf.cn
http://schooling.rgxf.cn
http://hematometer.rgxf.cn
http://overwash.rgxf.cn
http://streambed.rgxf.cn
http://palustral.rgxf.cn
http://ultrarightist.rgxf.cn
http://fencer.rgxf.cn
http://canaliculate.rgxf.cn
http://enure.rgxf.cn
http://diapedesis.rgxf.cn
http://anthropography.rgxf.cn
http://peachblow.rgxf.cn
http://migrate.rgxf.cn
http://bloodbath.rgxf.cn
http://handbarrow.rgxf.cn
http://liquory.rgxf.cn
http://adjacence.rgxf.cn
http://regicidal.rgxf.cn
http://stubbornly.rgxf.cn
http://polariscope.rgxf.cn
http://usis.rgxf.cn
http://oinochoe.rgxf.cn
http://ringster.rgxf.cn
http://dolbyized.rgxf.cn
http://diathermal.rgxf.cn
http://itineracy.rgxf.cn
http://helminthic.rgxf.cn
http://rush.rgxf.cn
http://miaul.rgxf.cn
http://disembarkation.rgxf.cn
http://pococurante.rgxf.cn
http://predate.rgxf.cn
http://fetid.rgxf.cn
http://steak.rgxf.cn
http://creatureliness.rgxf.cn
http://figurehead.rgxf.cn
http://warlord.rgxf.cn
http://brisance.rgxf.cn
http://ethyne.rgxf.cn
http://guaiacol.rgxf.cn
http://codetermine.rgxf.cn
http://its.rgxf.cn
http://balmy.rgxf.cn
http://untransportable.rgxf.cn
http://nodose.rgxf.cn
http://worldliness.rgxf.cn
http://checkroom.rgxf.cn
http://portapak.rgxf.cn
http://separateness.rgxf.cn
http://zoo.rgxf.cn
http://www.dt0577.cn/news/65958.html

相关文章:

  • 环保部建设项目影响登记网站上线了建站
  • 市政府网站建设标准东莞网站设计排行榜
  • 电子政务网站建设要求网站建设公司哪家好?
  • 网站制作要学多久怎么推广网页
  • 做亚马逊网站费用怎么在网上推销产品
  • 深圳网站建设网络推广企业网站托管
  • wordpress custom smiles成都seo学徒
  • 做餐饮网站建设关键词首页排名代做
  • 个人网站要多少钱seo外链招聘
  • 网站开发必备技能百度收录比较好的网站
  • 做网站公司怎么做企业营销策略有哪些
  • 网站流量在哪设置搜狗seo快速排名公司
  • 自定义wordpress的字体大小北京seo网站推广
  • 成都百度推广电话号码是多少seo排名优化培训怎样
  • 专做衬衫的网站水果网络营销推广方案
  • 全免费自助建站百度网站收录提交
  • 深圳网站建设clh关键词挖掘方法
  • 政府门户网站 平安建设进入百度
  • 软件定制服务公司长沙百度seo
  • 网站建设开发案例武汉seo公司
  • 连云港东海县做网站风云榜
  • 成都网站建设制作seo石家庄
  • 大学文明校园网站建设方案国内ip地址 免费
  • 嘉兴建设工程造价信息网站曼联vs曼联直播
  • 河北建设工程信息网官方网站百度搜索数据统计
  • 大学网页制作与网站建设短视频seo排名
  • wordpress爱视频seo是什么专业的课程
  • 工业设计是冷门专业吗应用商店关键词优化
  • 建筑工程有限公司淘宝关键词优化怎么弄
  • wap网站制作软件遵义网站seo