Added the splash screen to the QResources system
This commit is contained in:
parent
d43b00bd00
commit
4616da4e5f
3 changed files with 14696 additions and 8 deletions
|
|
@ -8,6 +8,6 @@
|
|||
<!-- <file alias = "images/edit_icon_128.png">../../resources/qt/images/edit_icon_128.png</file> -->
|
||||
<!-- <file alias = "images/trash_icon_128.png">../../resources/qt/images/trash_icon_128.png</file> -->
|
||||
<!-- <file alias = "images/clipboard_icon_128.png">../../resources/qt/images/clipboard_icon_128.png</file> -->
|
||||
<!-- <file alias = "images/splash.png">../../resources/qt/images/splash.png</file> -->
|
||||
<file alias = "images/splash.png">../../resources/qt/images/splash.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -258,9 +258,7 @@ class QtDriver(QObject):
|
|||
# self.windowFX = WindowEffect()
|
||||
# self.windowFX.setAcrylicEffect(self.main_window.winId())
|
||||
|
||||
splash_pixmap = QPixmap(
|
||||
f"{Path(__file__).parents[2]}/resources/qt/images/splash.png"
|
||||
)
|
||||
splash_pixmap = QPixmap(":/images/splash.png")
|
||||
splash_pixmap.setDevicePixelRatio(self.main_window.devicePixelRatio())
|
||||
self.splash = QSplashScreen(splash_pixmap)
|
||||
# self.splash.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue