#include "Almond.h" #include #include #include #include #include int main(int argc, char *argv[]) { QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); QApplication::setAttribute(Qt::AA_UseDesktopOpenGL); QApplication a(argc, argv); QSize screenDim = QGuiApplication::screens()[0]->size(); int splashW = screenDim.width() * 2 / 11; QPixmap splashImg(":/splash/splash"); QPixmap splashScaled = splashImg.scaled(splashW, splashW * splashImg.height() / splashImg.width()); QSplashScreen splash{ splashScaled }; a.processEvents(); splash.show(); Almond w; splash.finish(&w); a.processEvents(); w.showMaximized(); return a.exec(); }