10#include <QSplashScreen>
29 explicit SplashScreen(
const QString& image_path =
":/splash/splash-screen.png", QScreen* screen =
nullptr);
37 void showMessage(
const QString& message,
int alignment = Qt::AlignBottom | Qt::AlignHCenter,
38 const QColor& color = Qt::darkGray);
53 void setupPixmap(
const QString& image_path, QScreen* screen);
55 QString m_current_message {};
56 int m_alignment {Qt::AlignBottom | Qt::AlignHCenter};
57 QColor m_color {Qt::darkGray};
Custom splash screen displaying the application logo and loading status.
void showMessage(const QString &message, int alignment=Qt::AlignBottom|Qt::AlignHCenter, const QColor &color=Qt::darkGray)
Updates the loading status message displayed on the splash screen.
void drawContents(QPainter *painter) override
Draws the custom contents (the status message) over the pixmap.
SplashScreen(const QString &image_path=":/splash/splash-screen.png", QScreen *screen=nullptr)
Constructor for the splash screen.