当前位置:网站首页>[QT] custom control - switch
[QT] custom control - switch
2022-06-26 03:01:00 【GLL_】
【QT】 Custom control - switch
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边栏推荐
- 请指教同花顺开户选选择哪家券商比较好?网上开户是否安全么?
- 喜讯 | 祝贺Apache Linkis(incubating) 社区新增5位Committer
- How to default that an app is not restricted by traffic
- Dreamcamera2 record key prompt sound into video during video recording
- ArrayList#subList这四个坑,一不小心就中招
- Redis Lua sandbox bypass command execution (cve-2022-0543)
- 7 tips to change your life
- 如何在 ggplot2 中向绘图中添加表格
- Explain the JVM clearly at one time and don't be asked by the interviewer again
- Business process diagram design
猜你喜欢
随机推荐
I am in Zhongshan. Where can I open an account? Is it safe to open an account online?
网上股票开户安全吗?
Distributed e-commerce project grain mall learning notes < 3 >
数据库查询语句SQL中like、%、-的区别
《你不可不知的人性》经典语录
Redis Lua sandbox bypass command execution (cve-2022-0543)
音视频与CPU架构
MySQL根据查询的数据更新记录
我在中山,到哪里开户比较好?网上开户是否安全么?
Camtasia 2022全新版超清录制电脑视频
How to delete gridlines in ggplot2 (with examples)
Can the main RF circuit be removed for projects that do not need the main RF?
R语言 生存分析
What can Arthas do for you?
股票开户怎么开户?网上开户是否安全么?
Possible values for @supply in kotlin
Never criticize
What is flush software? Is online account opening safe?
如何在 ggplot2 中删除网格线(附示例)
Dual batteries in series, hardware design









