QtCanpool 3.3.0
载入中...
搜索中...
未找到
qxsplashscreen.h
浏览该文件的文档.
1
5#ifndef QXSPLASHSCREEN_H
6#define QXSPLASHSCREEN_H
7
8#include "qxapp_global.h"
9
10#include <QtCore/QString>
11#include <QtGui/QPixmap>
12#include <QtWidgets/QSplashScreen>
13
14QT_BEGIN_NAMESPACE
15class QPainter;
16QT_END_NAMESPACE
17
19
20class QxSplashScreenPrivate;
21
44class QX_APP_EXPORT QxSplashScreen : public QSplashScreen
45{
46 Q_OBJECT
47public:
48 explicit QxSplashScreen(const QPixmap &logo = QPixmap(), const QString &applicationName = QString(),
49 const QString &version = QString(), Qt::WindowFlags flags = Qt::WindowFlags());
50 ~QxSplashScreen() override;
51
52 QString applicationName() const;
53 QString version() const;
54 QString message() const;
56 int progress() const;
57
58public Q_SLOTS:
59 void setApplicationName(const QString &applicationName);
60 void setVersion(const QString &version);
61 void setMessage(const QString &message);
63 void setProgress(int progress);
69 void step(int progress, const QString &message = QString());
70protected:
71 void drawContents(QPainter *painter) override;
72private:
73 Q_DISABLE_COPY(QxSplashScreen)
75};
76
78
79#endif // QXSPLASHSCREEN_H
A splash screen that reports how far the start-up has come.
#define QX_APP_END_NAMESPACE
#define QX_APP_EXPORT
#define QX_DECLARE_PRIVATE(Class)
#define QX_APP_BEGIN_NAMESPACE