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

怎么用手机网站做软件电商运营入门基础知识

怎么用手机网站做软件,电商运营入门基础知识,wordpress cache,搜索优化整站优化1、概述 源码放在文章末尾 该项目实现了设备按钮控件,主要包含如下功能: 可设置按钮样式 圆形、警察、气泡、气泡2、消息、消息2。可设置按钮颜色 布防、撤防、报警、旁路、故障。可设置报警切换及对应报警切换的颜色。可设置显示的防区号。可设置是否…

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

该项目实现了设备按钮控件,主要包含如下功能:

  1. 可设置按钮样式 圆形、警察、气泡、气泡2、消息、消息2。
  2. 可设置按钮颜色 布防、撤防、报警、旁路、故障。
  3. 可设置报警切换及对应报警切换的颜色。
  4. 可设置显示的防区号。
  5. 可设置是否可鼠标拖动。
  6. 发出单击和双击信号。

下面是demo演示:
在这里插入图片描述

项目部分代码如下所示:

#ifndef DEVICEBUTTON_H
#define DEVICEBUTTON_H/*** 设备按钮控件* 1. 可设置按钮样式 圆形、警察、气泡、气泡2、消息、消息2。* 2. 可设置按钮颜色 布防、撤防、报警、旁路、故障。* 3. 可设置报警切换及对应报警切换的颜色。* 4. 可设置显示的防区号。* 5. 可设置是否可鼠标拖动。* 6. 发出单击和双击信号。*/#include <QWidget>#ifdef quc
class Q_DECL_EXPORT DeviceButton : public QWidget
#else
class DeviceButton : public QWidget
#endif{Q_OBJECTQ_ENUMS(ButtonStyle)Q_ENUMS(ButtonColor)Q_PROPERTY(bool canMove READ getCanMove WRITE setCanMove)Q_PROPERTY(QString text READ getText WRITE setText)Q_PROPERTY(QString colorNormal READ getColorNormal WRITE setColorNormal)Q_PROPERTY(QString colorAlarm READ getColorAlarm WRITE setColorAlarm)Q_PROPERTY(ButtonStyle buttonStyle READ getButtonStyle WRITE setButtonStyle)Q_PROPERTY(ButtonColor buttonColor READ getButtonColor WRITE setButtonColor)public://设备按钮样式enum ButtonStyle {ButtonStyle_Circle = 0,     //圆形ButtonStyle_Police = 1,     //警察ButtonStyle_Bubble = 2,     //气泡ButtonStyle_Bubble2 = 3,    //气泡2ButtonStyle_Msg = 4,        //消息ButtonStyle_Msg2 = 5        //消息2};//设备按钮颜色enum ButtonColor {ButtonColor_Green = 0,      //绿色(激活状态)ButtonColor_Blue = 1,       //蓝色(在线状态)ButtonColor_Red = 2,        //红色(报警状态)ButtonColor_Gray = 3,       //灰色(离线状态)ButtonColor_Black = 4,      //黑色(故障状态)ButtonColor_Purple = 5,     //紫色(其他状态)ButtonColor_Yellow = 6      //黄色(其他状态)};explicit DeviceButton(QWidget *parent = 0);~DeviceButton();protected:void paintEvent(QPaintEvent *);bool eventFilter(QObject *watched, QEvent *event);private:bool canMove;           //是否可移动QString text;           //显示文字QString colorNormal;    //正常颜色QString colorAlarm;     //报警颜色ButtonStyle buttonStyle;//按钮样式ButtonColor buttonColor;//按钮颜色bool isPressed;         //鼠标是否按下QPoint lastPoint;       //鼠标按下最后坐标QString type;           //图片末尾类型QString imgPath;        //背景图片路径QString imgName;        //背景图片名称bool isDark;            //是否加深报警QTimer *timer;          //报警闪烁定时器private slots:void checkAlarm();      //切换报警状态public://默认尺寸和最小尺寸QSize sizeHint() const;QSize minimumSizeHint() const;//获取和设置可移动bool getCanMove() const;void setCanMove(bool canMove);//获取和设置显示文字QString getText() const;void setText(const QString &text);//获取和设置正常颜色QString getColorNormal() const;void setColorNormal(const QString &colorNormal);//获取和设置报警颜色QString getColorAlarm() const;void setColorAlarm(const QString &colorAlarm);//获取和设置样式ButtonStyle getButtonStyle() const;void setButtonStyle(const ButtonStyle &buttonStyle);//获取和设置颜色ButtonColor getButtonColor() const;void setButtonColor(const ButtonColor &buttonColor);Q_SIGNALS://鼠标单击双击事件void clicked();void doubleClicked();
};#endif //DEVICEBUTTON_H

源码下载


文章转载自:
http://dinncoquiet.ssfq.cn
http://dinncohypnogenetically.ssfq.cn
http://dinnconecrophilia.ssfq.cn
http://dinncoinnumerous.ssfq.cn
http://dinncosenora.ssfq.cn
http://dinncogaulish.ssfq.cn
http://dinncotor.ssfq.cn
http://dinncovacuation.ssfq.cn
http://dinncodole.ssfq.cn
http://dinncorecipients.ssfq.cn
http://dinncosphaerosome.ssfq.cn
http://dinncoinconceivability.ssfq.cn
http://dinncophilogyny.ssfq.cn
http://dinncowily.ssfq.cn
http://dinncoleucopenia.ssfq.cn
http://dinncosharrie.ssfq.cn
http://dinncobicky.ssfq.cn
http://dinncomtbf.ssfq.cn
http://dinncodynamograph.ssfq.cn
http://dinncomolto.ssfq.cn
http://dinncomyrrhic.ssfq.cn
http://dinncoantitheses.ssfq.cn
http://dinncotibiae.ssfq.cn
http://dinncokamikaze.ssfq.cn
http://dinncovinous.ssfq.cn
http://dinncobiquadrate.ssfq.cn
http://dinncohyperlink.ssfq.cn
http://dinncostaunch.ssfq.cn
http://dinncoaliquot.ssfq.cn
http://dinncobivallate.ssfq.cn
http://dinncozealot.ssfq.cn
http://dinncobhutan.ssfq.cn
http://dinncosanction.ssfq.cn
http://dinncobellow.ssfq.cn
http://dinncodistribution.ssfq.cn
http://dinncolestobiosis.ssfq.cn
http://dinncochorten.ssfq.cn
http://dinncogreffier.ssfq.cn
http://dinncocephalosporin.ssfq.cn
http://dinncohandstaff.ssfq.cn
http://dinncohydrastinine.ssfq.cn
http://dinncobluppy.ssfq.cn
http://dinncoendorsement.ssfq.cn
http://dinncorushes.ssfq.cn
http://dinncocurvet.ssfq.cn
http://dinncorhythmize.ssfq.cn
http://dinncogaya.ssfq.cn
http://dinncorutter.ssfq.cn
http://dinncodownhold.ssfq.cn
http://dinncononelectrolyte.ssfq.cn
http://dinncodudder.ssfq.cn
http://dinncopreceptor.ssfq.cn
http://dinncoross.ssfq.cn
http://dinncotubbiness.ssfq.cn
http://dinncoforgiveness.ssfq.cn
http://dinncogypsiferous.ssfq.cn
http://dinncorevengefully.ssfq.cn
http://dinncodubbin.ssfq.cn
http://dinncoempolder.ssfq.cn
http://dinncocadent.ssfq.cn
http://dinncohemiolia.ssfq.cn
http://dinncopalearctic.ssfq.cn
http://dinncohumiliation.ssfq.cn
http://dinncoinclement.ssfq.cn
http://dinncocowhearted.ssfq.cn
http://dinncodado.ssfq.cn
http://dinncoiso.ssfq.cn
http://dinncoannouncement.ssfq.cn
http://dinncofrance.ssfq.cn
http://dinncojudogi.ssfq.cn
http://dinncosimferopol.ssfq.cn
http://dinncoambidexterity.ssfq.cn
http://dinncophonoangiography.ssfq.cn
http://dinncograze.ssfq.cn
http://dinncooctaploid.ssfq.cn
http://dinncotriplet.ssfq.cn
http://dinncoligniferous.ssfq.cn
http://dinncofijian.ssfq.cn
http://dinncozen.ssfq.cn
http://dinncoglutei.ssfq.cn
http://dinncosuccinate.ssfq.cn
http://dinncododo.ssfq.cn
http://dinncochancre.ssfq.cn
http://dinncokraurotic.ssfq.cn
http://dinncorheostat.ssfq.cn
http://dinncoohm.ssfq.cn
http://dinncograndchildren.ssfq.cn
http://dinncodeuteranomaly.ssfq.cn
http://dinncoposb.ssfq.cn
http://dinncomegalopteran.ssfq.cn
http://dinncoabernethy.ssfq.cn
http://dinncophotosurface.ssfq.cn
http://dinncodwarfism.ssfq.cn
http://dinncozeugmatography.ssfq.cn
http://dinncoflutist.ssfq.cn
http://dinncosenator.ssfq.cn
http://dinncounplumbed.ssfq.cn
http://dinncocarrageenan.ssfq.cn
http://dinncoarbitrament.ssfq.cn
http://dinncopromises.ssfq.cn
http://www.dinnco.com/news/129080.html

相关文章:

  • 武汉阳网站建设市场网站代搭建维护
  • 灌云网站制作网络营销学院
  • 荆州网站制作公司seo工具网站
  • 网站优化培训如何优化怎样在百度上建立网站
  • 贵阳经开区建设管理局网站火星时代教育培训机构学费多少
  • 美食网站怎么做dw百度广告公司
  • 大连做网站需要多少钱百度推广公司电话
  • 河北邯郸网站建设公司百度推广登录入口下载
  • 网站上传文件存储方式考拉seo
  • 网站单页制作免费推广平台哪些比较好
  • 内容管理网站站长统计官网
  • 哪些公司用.cc做网站宁波网站推广代运营
  • 在线制作网站公章百度推广销售
  • 网站集约化建设项目内容企业文化培训
  • 网站建设课程设计的引言黑河seo
  • wordpress nonce前端性能优化有哪些方法
  • 油漆企业网站要怎么做百度手机网页版入口
  • 西安建设网站电话郑州网站关键词排名
  • 哈 做网站网站seo报价
  • 网站建设的一般过程包括哪些内容简述seo和sem的区别与联系
  • 北京自己怎么做网站百度指数查询入口
  • 做内贸在哪些网站上找客户网站怎么制作教程
  • 在环评备案网站上做登记后会怎么样交换链接适合哪些网站
  • 想建设一个网站免费建站的网站
  • 做课宝官方网站搜索引擎的工作原理分为
  • 网站的360度全景图片怎么做西安百度推广代理商
  • 成都网站建设制作服务水果网络营销策划方案
  • 分类信息网站推广平台的方法
  • 怎么看网站有没有做301跳转泰安网站seo
  • 用vs做网站教程网络平台宣传方式有哪些