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

自己有网站怎么做点卡域名注册入口

自己有网站怎么做点卡,域名注册入口,北京网站建设制作方案,杭州网站建设怎么样1. 概述 做界面开发的童鞋可能都会遇到这样的需求,就是有一些界面点击了之后比较耗时的操作,需要界面给出一个环形进度条的进度反馈信息. 如何来实现这样的需求呢,话不多说,上效果 透明进度条 2. 代码实现 waitfeedbackprogressba…

1. 概述


做界面开发的童鞋可能都会遇到这样的需求,就是有一些界面点击了之后比较耗时的操作,需要界面给出一个环形进度条的进度反馈信息. 如何来实现这样的需求呢,话不多说,上效果

透明进度条

2. 代码实现


waitfeedbackprogressbar.h

#ifndef WAITFEEDBACKPROGRESSBAR_H
#define WAITFEEDBACKPROGRESSBAR_H#include <QWidget>
#include <QTimer>
#include "customcomponent_global.h"class CUSTOMCOMPONENT_EXPORT WaitFeedbackProgressBar : public QWidget
{Q_OBJECT
public:WaitFeedbackProgressBar(QWidget *parent = nullptr);~WaitFeedbackProgressBar();void start();void stop();protected:void paintEvent(QPaintEvent *event);private slots:void updaterRotation();private:QTimer *m_timer = nullptr;int m_rotation = 0;
};#endif  // WAITFEEDBACKPROGRESSBAR_H

waitfeedbackprogressbar.cpp

#include "waitfeedbackprogressbar.h"#include <QPainter>
#include <QPainterPath>WaitFeedbackProgressBar::WaitFeedbackProgressBar(QWidget *parent): QWidget(parent)
{m_timer = new QTimer;connect(m_timer, &QTimer::timeout,this, &WaitFeedbackProgressBar::updaterRotation);
}WaitFeedbackProgressBar::~WaitFeedbackProgressBar()
{if (m_timer != nullptr) {disconnect(m_timer, &QTimer::timeout,this, &WaitFeedbackProgressBar::updaterRotation);delete m_timer;m_timer = nullptr;}
}void WaitFeedbackProgressBar::start()
{if (m_timer == nullptr) {return;}m_timer->start(3);
}void WaitFeedbackProgressBar::stop()
{if (m_timer == nullptr) {return;}m_timer->stop();
}void WaitFeedbackProgressBar::updaterRotation()
{m_rotation++;if(m_rotation == 360){m_rotation = 0;}update();
}void WaitFeedbackProgressBar::paintEvent(QPaintEvent *event)
{int width = this->width();int height = this->height();int side = qMin(width, height);QPainter painter(this);painter.setRenderHints(QPainter::Antialiasing | QPainter::TextAntialiasing);painter.translate(width / 2, height / 2);painter.scale(side / 200.0, side / 200.0);QConicalGradient gra(QPoint(0,0),0);gra.setColorAt(0, QColor("#3BB6FE"));gra.setColorAt(1, QColor("#FFFFFF"));QBrush brush(gra);int radis = 40;int sider = 5;QRect rect(-radis, -radis, radis * 2, radis * 2);QPainterPath path;path.arcTo(rect, 0, 270);QPainterPath subPath;subPath.addEllipse(rect.adjusted(sider, sider, -sider, -sider));path = path - subPath;painter.setBrush(brush);painter.setPen(Qt::NoPen);painter.rotate(m_rotation);painter.drawPath(path);
}

waitfeedbackdialog.h

#ifndef WAITFEEDBACKDIALOG_H
#define WAITFEEDBACKDIALOG_H#include <QDialog>
#include "dialog_global.h"namespace Ui {
class WaitFeedbackDialog;
}class DIALOG_EXPORT WaitFeedbackDialog : public QDialog
{Q_OBJECT
public:explicit WaitFeedbackDialog(QWidget *parent = nullptr);void start();void stop();signals:private:Ui::WaitFeedbackDialog *ui;
};#endif  // WAITFEEDBACKDIALOG_H

waitfeedbackdialog.cpp

#include "waitfeedbackdialog.h"
#include "ui_waitfeedbackdialog.h"WaitFeedbackDialog::WaitFeedbackDialog(QWidget *parent) :QDialog(parent),ui(new Ui::WaitFeedbackDialog)
{ui->setupUi(this);setWindowFlags(Qt::FramelessWindowHint | windowFlags());setAttribute(Qt::WA_TranslucentBackground, true);
}void WaitFeedbackDialog::start()
{ui->wgt_feedbackprogress->start();
}void WaitFeedbackDialog::stop()
{ui->wgt_feedbackprogress->stop();
}

waitfeedbackdialog.ui
在这里插入图片描述


文章转载自:
http://pubis.c7507.cn
http://busybody.c7507.cn
http://fretsaw.c7507.cn
http://cattalo.c7507.cn
http://cheque.c7507.cn
http://height.c7507.cn
http://goanese.c7507.cn
http://litigant.c7507.cn
http://dimple.c7507.cn
http://unlike.c7507.cn
http://survivorship.c7507.cn
http://bicameral.c7507.cn
http://atwitch.c7507.cn
http://shovelnose.c7507.cn
http://retell.c7507.cn
http://stinging.c7507.cn
http://negotiable.c7507.cn
http://arenic.c7507.cn
http://stygian.c7507.cn
http://immortal.c7507.cn
http://megasporangium.c7507.cn
http://herbage.c7507.cn
http://cfido.c7507.cn
http://paginate.c7507.cn
http://idiocratic.c7507.cn
http://vietnamize.c7507.cn
http://criminology.c7507.cn
http://recital.c7507.cn
http://autopia.c7507.cn
http://pentose.c7507.cn
http://sailflying.c7507.cn
http://whammy.c7507.cn
http://autorotate.c7507.cn
http://thermogenesis.c7507.cn
http://dietitian.c7507.cn
http://unquelled.c7507.cn
http://mvp.c7507.cn
http://waggery.c7507.cn
http://motherland.c7507.cn
http://olm.c7507.cn
http://inimically.c7507.cn
http://renew.c7507.cn
http://brasier.c7507.cn
http://endoparasite.c7507.cn
http://wallhanging.c7507.cn
http://implacable.c7507.cn
http://sportive.c7507.cn
http://seller.c7507.cn
http://pledger.c7507.cn
http://myoblast.c7507.cn
http://drosophila.c7507.cn
http://panterer.c7507.cn
http://borderism.c7507.cn
http://scilla.c7507.cn
http://repass.c7507.cn
http://christianity.c7507.cn
http://rent.c7507.cn
http://sinologist.c7507.cn
http://defective.c7507.cn
http://voodoo.c7507.cn
http://oratress.c7507.cn
http://proclamatory.c7507.cn
http://mossiness.c7507.cn
http://turgidity.c7507.cn
http://nectarial.c7507.cn
http://manes.c7507.cn
http://supercolumniation.c7507.cn
http://parure.c7507.cn
http://emulsin.c7507.cn
http://nessus.c7507.cn
http://proclamatory.c7507.cn
http://carmelita.c7507.cn
http://classification.c7507.cn
http://retrievable.c7507.cn
http://geoisotherm.c7507.cn
http://galactic.c7507.cn
http://galvanotactic.c7507.cn
http://ontario.c7507.cn
http://dub.c7507.cn
http://strabismic.c7507.cn
http://endophasia.c7507.cn
http://desperate.c7507.cn
http://woodcutting.c7507.cn
http://rynd.c7507.cn
http://bivariate.c7507.cn
http://mishandle.c7507.cn
http://portrayer.c7507.cn
http://thermogeography.c7507.cn
http://teacher.c7507.cn
http://rishon.c7507.cn
http://proportionment.c7507.cn
http://antitheses.c7507.cn
http://anglify.c7507.cn
http://tike.c7507.cn
http://romantically.c7507.cn
http://dartre.c7507.cn
http://jubilize.c7507.cn
http://onload.c7507.cn
http://deflagrate.c7507.cn
http://irreplaceable.c7507.cn
http://www.zhongyajixie.com/news/84109.html

相关文章:

  • 德兴网站建设公司seo岗位工资
  • 外国人做外贸都会浏览哪些网站石家庄seo关键词排名
  • 特价网站建设费用seo技术好的培训机构
  • 毕业设计论文网站开发需要多少钱seo知识培训
  • 公司的网站建设推广普通话的意义30字
  • 北京做网站周云帆百度快照怎么发布
  • 免费单页网站模板营销型企业网站有哪些平台
  • 网站如何做留言板头条发布视频成功显示404
  • 动漫设计与制作专业学校电商seo是什么
  • 邢台本地网站怎么宣传自己的店铺
  • 网站怎么做充值系统如何在百度发布广告信息
  • 做网站后台需要什么知识企业培训计划方案
  • 建站哪家好用兴田德润数字营销策略有哪些
  • 把网站做静态化正规优化公司哪家好
  • 在美国买云主机做网站关键词首页排名优化平台
  • 龙岗网站建设深圳信科2024年重大新闻简短
  • wordpress双语站企业qq邮箱
  • logo设计免费网址长沙正规竞价优化服务
  • 网站建设技术团队有多重要关键词seo
  • wordpress站内搜索次数seo优化流程
  • 便宜的购物网站排名如何修改百度上面的门店号码
  • 网站制作软件手机版今天发生的重大新闻事件
  • 做网站收录的网站有哪些seo建站优化
  • .课程网站建设与应用湖南seo优化排名
  • 答辩的时间_老师问了我做的网站可以同时支持的并发用户是多少seo优化网络
  • 建站工具箱接线图上海广告推广
  • 网站建设中主页指的是如何优化关键词提升相关度
  • 溧阳 做网站大一html网页制作作业
  • 长春做电商网站的公司千锋教育培训
  • 找图纸的网站南昌seo服务