#pragma once #include #include #include #include #include "iSplashObj.h" class I_GUI_SPLASH_EXPORT iSplashObjScreenEx: public QSplashScreen, public iSplashObj { Q_OBJECT public: iSplashObjScreenEx(QPixmap& pixmap); ~iSplashObjScreenEx(); // 开启或关闭 virtual void start(); virtual void finish(); private: // 产生随机数 void generateRandoms(); private slots: // void slotUpdateProgress(); private: int m_nImgHeight; int m_nImgWidth; QList m_listRandoms; //随机数 int m_nLoopMax; //最大 QProgressBar* m_pProgressBar; QTimer* m_pTimer; };