opencv_mv/QMainPro/QMacVisual/cmysplashscreen.h

36 lines
613 B
C
Raw Permalink Normal View History

2023-05-22 09:27:46 +00:00
#pragma once
#include <QSplashScreen>
#include <QPixmap>
#include <QProgressBar>
#include <QList>
#include <QtGlobal>
#include "QRoundProgressBar.h"
class CMySplashScreen : public QSplashScreen
{
Q_OBJECT
public:
CMySplashScreen(QPixmap& pixmap, int time);
~CMySplashScreen();
private:
//进度条
QRoundProgressBar* mRoundBar;
//随机数列表
QList<int> numbersList;
//启动界面停留的时间
int elapseTime;
private:
//设置进度条
void setProgress();
//生成递增的随机数
void generateAscendRandomNumber();
private slots:
//更新进度条
void slotUpdateProgress();
};