当前位置:网站首页>【QT】自定义控件-开关
【QT】自定义控件-开关
2022-06-26 02:19:00 【GLL_】
【QT】自定义控件-开关
switchbutton.h
#ifndef SWITCHBUTTON_H
#define SWITCHBUTTON_H
#include <QWidget>
#include <QPaintDevice>
#include <QPaintEngine>
#include <QPainter>
#include <QPoint>
#include <QPointF>
#include <QColor>
#include <QFont>
#include <QMouseEvent>
class SwitchButton : public QWidget
{
Q_OBJECT
public:
SwitchButton(QWidget *parent = 0);
~SwitchButton();
void RoundRect(QPointF point_base, int x ,int y);
void DrawEllipse(QPointF point_base, int x ,int y);
void DrawText(QPointF point_base,QString text);
void RoundRect(QPointF point_base, int x ,int y,QColor color);
void DrawEllipse(QPointF point_base, int x ,int y,QColor color);
void DrawText(QPointF point_base,QString text,QColor color);
void RoundRect2(QPointF point_base, int x ,int y,QColor color);
void DrawEllipse2(QPointF point_base, int x ,int y,QColor color);
void DrawTex
边栏推荐
- OpenAPI 3.0 specification - Food Guide
- Google 推荐在 MVVM 架构中使用 Kotlin Flow
- Sloppy formula
- [solution] the blue screen restart problem of the virtual machine started by the VMware of Lenovo Savior
- Oracle练习
- Redis classic 20 questions
- 如何在 R 中的绘图中添加回归方程
- How to default that an app is not restricted by traffic
- 限制输入字符长度length英文1个字符中文2个字符
- UTONMOS:以数字藏品助力华夏文化传承和数字科技发展
猜你喜欢
ORB-SLAM3论文概述
Gd32 ADC acquisition voltage
OpenAPI 3.0 specification - Food Guide
How to solve the problem that the iPhone 13 lock screen cannot receive the wechat notification prompt?
2021-08-04
Share some remote office experience in Intranet operation | community essay solicitation
UE5全局光照系统Lumen解析与优化
OpenAPI 3.0 specification - Food Guide
Redis configuration and optimization of NoSQL
无法上网问题解决过程
随机推荐
Limit the input character length to 1 character in English and 2 characters in Chinese
程序员的八年工资变动,令网友羡慕不已:你一个月顶我一年工资
UTONMOS:以数字藏品助力华夏文化传承和数字科技发展
Gd32 ADC acquisition voltage
Cox 回归模型
OpenAPI 3.0 规范-食用指南
GD32 ADC采集电压
【QT】自定义控件-空气质量仪表盘
Install development cross process communication
The difference between like,%, - in database query SQL
Can the main RF circuit be removed for projects that do not need the main RF?
How to solve the problem that the iPhone 13 lock screen cannot receive the wechat notification prompt?
Depth first traversal of Graphs
The programmer's eight-year salary change has made netizens envious: you pay me one year's salary per month
如何提词条
Survival analysis based on ovarian data set
在同花顺网上开户安全吗?如何网上开一个券商账户
Add console programs in UE
Classic quotations from "human nature you must not know"
2022年挖财商学院证券开户安全嘛?