当前位置:网站首页>【QT】自定义控件-Loading

【QT】自定义控件-Loading

2022-07-06 22:59:00 GLL_

【QT】自定义控件-Loading

pro

QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = GLoading
TEMPLATE = app


SOURCES += main.cpp\
        gloading.cpp

HEADERS  += gloading.h

gloading.h

#ifndef GLOADING_H
#define GLOADING_H

#include <QWidget>
#include <QPaintDevice>
#include <QPaintEngine>
#include <QPainter>
#include <QColor>
#include <QPointF>
#include <QTime>
#include <QCoreApplication>
#include <QEventLoop>

class GLoading : public QWidget
{
    Q_OBJECT

public:
    GLoading(QWidget *parent = 0);
    ~GLoading();

    void DrawCircle(QPointF pointbase,int R,int r,int angle,QColor color);
    QPointF pointBase  = QPointF(50,50);
    QColor color = QColor(29, 130, 254),color2 =QColor(60, 132, 74) ,color3 =QColor(255, 170, 37)  ,color4 =QColor(255
原网站

版权声明
本文为[GLL_]所创,转载请带上原文链接,感谢
https://rong11417.blog.csdn.net/article/details/125591521