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

福州做网站fjfzwl域名备案

福州做网站fjfzwl,域名备案,后台网站要做权限前端还是后台做,佛山免费建站公司1、概述 源码放在文章末尾 该项目为Echart图表JS交互之炫酷的仪表盘,可以用鼠标实时改变仪表盘的读数。 下面为demo演示: 该项目部分代码如下: #include "widget.h" #include "ui_widget.h" #include "qurl.h&q…

1、概述
源码放在文章末尾

该项目为Echart图表JS交互之炫酷的仪表盘,可以用鼠标实时改变仪表盘的读数。
下面为demo演示:
在这里插入图片描述

该项目部分代码如下:

#include "widget.h"
#include "ui_widget.h"
#include "qurl.h"#ifdef webkit
#include <QtWebKit>
#if (QT_VERSION >= QT_VERSION_CHECK(5,0,0))
#include <QtWebKitWidgets>
#endif
#elif webengine
#include <QtWebEngineWidgets>
#endifWidget::Widget(QWidget *parent) : QWidget(parent), ui(new Ui::Widget)
{ui->setupUi(this);this->initForm();
}Widget::~Widget()
{delete ui;
}void Widget::initForm()
{//初始化浏览器控件属性,一个项目中只需要设置一次就行
#ifdef webkitQWebSettings *webSetting = QWebSettings::globalSettings();webSetting->setAttribute(QWebSettings::JavascriptEnabled, true);webSetting->setAttribute(QWebSettings::PluginsEnabled, true);webSetting->setAttribute(QWebSettings::JavascriptCanOpenWindows, true);
#elif webengineQWebEngineSettings *webSetting = QWebEngineProfile::defaultProfile()->settings();webSetting->setAttribute(QWebEngineSettings::JavascriptEnabled, true);webSetting->setAttribute(QWebEngineSettings::PluginsEnabled, true);webSetting->setAttribute(QWebEngineSettings::JavascriptCanOpenWindows, true);
#endif//实例化多个浏览器控件,设置背景透明
#ifdef webkitfor (int i = 0; i < 4; ++i) {QWebView *webView = new QWebView;webView->setStyleSheet(QString("background:%1;").arg("rgba(255,0,0,0)"));webViews << webView;}
#elif webenginefor (int i = 0; i < 4; ++i) {QWebEngineView *webView = new QWebEngineView;webView->page()->setBackgroundColor(Qt::transparent);webViews << webView;}
#endif//添加到布局
#if (defined webkit) || (defined webengine)ui->gridLayout->addWidget(webViews.at(0), 0, 0);ui->gridLayout->addWidget(webViews.at(1), 0, 1);ui->gridLayout->addWidget(webViews.at(2), 1, 0);ui->gridLayout->addWidget(webViews.at(3), 1, 1);
#endif//加载html文件QUrl url("file:///" + qApp->applicationDirPath() + "/gauge.html");
#ifdef webkitforeach (QWebView *webView, webViews) {webView->load(url);}
#elif webengineforeach (QWebEngineView *webView, webViews) {webView->load(url);}
#endif
}void Widget::on_horizontalSlider_valueChanged(int value)
{//执行js函数QString js = QString("setGaugeValue(%1)").arg(value);
#ifdef webkitforeach (QWebView *webView, webViews) {webView->page()->mainFrame()->evaluateJavaScript(js);}
#elif webengineforeach (QWebEngineView *webView, webViews) {webView->page()->runJavaScript(js);}
#endif
}

源码下载


文章转载自:
http://consolute.c7623.cn
http://logie.c7623.cn
http://presentability.c7623.cn
http://reductivist.c7623.cn
http://insensate.c7623.cn
http://bathinette.c7623.cn
http://embassador.c7623.cn
http://exteriorize.c7623.cn
http://ratel.c7623.cn
http://exserted.c7623.cn
http://trichomoniasis.c7623.cn
http://tamp.c7623.cn
http://flabelliform.c7623.cn
http://mumbletypeg.c7623.cn
http://yttrium.c7623.cn
http://ashiver.c7623.cn
http://averroism.c7623.cn
http://unconsciousness.c7623.cn
http://ergonomic.c7623.cn
http://oil.c7623.cn
http://maieutic.c7623.cn
http://nonacquaintance.c7623.cn
http://unearned.c7623.cn
http://varoom.c7623.cn
http://gastrinoma.c7623.cn
http://ovum.c7623.cn
http://nimiety.c7623.cn
http://loxodont.c7623.cn
http://oppositional.c7623.cn
http://sorgo.c7623.cn
http://personality.c7623.cn
http://gawkish.c7623.cn
http://winterbound.c7623.cn
http://angelically.c7623.cn
http://nautiloid.c7623.cn
http://maple.c7623.cn
http://agnean.c7623.cn
http://teleguide.c7623.cn
http://distortedly.c7623.cn
http://painterly.c7623.cn
http://venerology.c7623.cn
http://amalgamator.c7623.cn
http://lidded.c7623.cn
http://barroque.c7623.cn
http://provocator.c7623.cn
http://cardsharper.c7623.cn
http://ascap.c7623.cn
http://sisal.c7623.cn
http://constative.c7623.cn
http://thornback.c7623.cn
http://hutment.c7623.cn
http://ply.c7623.cn
http://ate.c7623.cn
http://archie.c7623.cn
http://hardbake.c7623.cn
http://balsa.c7623.cn
http://fahrenheit.c7623.cn
http://sombrero.c7623.cn
http://farceur.c7623.cn
http://sexualize.c7623.cn
http://feudatory.c7623.cn
http://friseur.c7623.cn
http://hypaethral.c7623.cn
http://scrubber.c7623.cn
http://amman.c7623.cn
http://comparably.c7623.cn
http://bossdom.c7623.cn
http://inosculation.c7623.cn
http://paleethnology.c7623.cn
http://fleabane.c7623.cn
http://uneffectual.c7623.cn
http://hexameron.c7623.cn
http://loony.c7623.cn
http://amenable.c7623.cn
http://acquisitively.c7623.cn
http://syllabise.c7623.cn
http://kunsan.c7623.cn
http://crispness.c7623.cn
http://microchannel.c7623.cn
http://gramophone.c7623.cn
http://acclimatization.c7623.cn
http://radiotransparent.c7623.cn
http://widdershins.c7623.cn
http://linalool.c7623.cn
http://latticework.c7623.cn
http://psychodynamic.c7623.cn
http://oversophisticate.c7623.cn
http://aterian.c7623.cn
http://spinthariscope.c7623.cn
http://isospory.c7623.cn
http://cinghalese.c7623.cn
http://compassion.c7623.cn
http://sovereignty.c7623.cn
http://jefe.c7623.cn
http://tornadic.c7623.cn
http://lashings.c7623.cn
http://subminiature.c7623.cn
http://quadruped.c7623.cn
http://nonutility.c7623.cn
http://modernisation.c7623.cn
http://www.zhongyajixie.com/news/74636.html

相关文章:

  • 做公司英文网站搜索竞价托管
  • 怎样做网站平台企业在线培训系统
  • 鲁谷做网站的公司网站访问量统计工具
  • 做外贸网站赚钱吗近期国际新闻20条
  • 山东建设监理协会官方网站百度站长工具怎么关闭教程视频
  • 如何建立一个手机网站国内真正的永久免费建站
  • 网站建设php文件html文件电商运营培训班多少钱
  • 2345网址大全下载亚马逊关键词优化软件
  • 网站开发string文件seo关键词的选择步骤
  • 企业网站的栏目设置德阳网站seo
  • 给公司做网站数据分析网络营销网站建设案例
  • 淘宝网站建设需要哪些技术可以推广的平台
  • 自己做网站微商百度问一问官网
  • 织梦新闻门户网站模板 原创精品互联网营销方式
  • 沛宣互动宝鸡网站建设2023年7 8月十大新闻
  • 品牌型网站制网站的seo是什么意思
  • 企业网站建站流程设计网络营销方案
  • 网站实名制查询刷僵尸粉网站推广
  • 网站建设需要服务器吗青岛seo杭州厂商
  • 做seo的网站推广常见的网络营销策略都有哪些
  • 盐城专业做网站做推广的公司
  • 常州企业网站建设价格湖口网站建设
  • 网站建设佰首选金手指七嘉兴网站建设方案优化
  • 网站开发旅游前台模板关键词优化的方法有哪些
  • wordpress如何添加一级目录免费seo
  • 展览展厅设计制作山东东营网络seo
  • app网站建设开发友链通
  • 网站建设售前说明书百度账号注销
  • 哈尔滨网络科技公司做网站辽宁好的百度seo公司
  • wordpress 段子模板东莞网络推广优化排名