Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个在不同场景中使用 3 个启动画面的应用程序。问题是我似乎无法设置这些 QSplashScreens 的几何形状或定位。实际上,当应用程序大小发生变化或应用程序在屏幕上的位置发生变化时,闪屏就会不受控制地显示在随机位置。我该如何控制它?
QSplashScreen继承自QWidget并QWidget具有move功能。使用此功能更改QSplashScreen
QSplashScreen
QWidget
move
例如,splash.move(200, 200)
splash.move(200, 200)