QPixmap pixmap(QString::fromUtf8(":/images/logo.png"));
pixmap = pixmap.scaled(QApplication::desktop()->size());
QSplashScreen *splash = new QSplashScreen(pixmap);
pixmap = pixmap.scaled(QApplication::desktop()->size());
QSplashScreen *splash = new QSplashScreen(pixmap);
本文介绍如何使用QString与QPixmap加载图片资源并进行缩放处理,接着创建QSplashScreen以实现应用程序的启动屏幕展示。
1649

被折叠的 条评论
为什么被折叠?



