Fix import_screen: setIcon attend QIcon pas QPixmap
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -79,8 +79,9 @@ class ImportScreen(QWidget):
|
|||||||
Qt.AspectRatioMode.KeepAspectRatio,
|
Qt.AspectRatioMode.KeepAspectRatio,
|
||||||
Qt.TransformationMode.SmoothTransformation
|
Qt.TransformationMode.SmoothTransformation
|
||||||
)
|
)
|
||||||
btn.setIcon(scaled)
|
from PyQt6.QtGui import QIcon
|
||||||
from PyQt6.QtCore import QSize
|
from PyQt6.QtCore import QSize
|
||||||
|
btn.setIcon(QIcon(scaled))
|
||||||
btn.setIconSize(QSize(170, 170))
|
btn.setIconSize(QSize(170, 170))
|
||||||
|
|
||||||
btn.clicked.connect(lambda checked, p=path: self.main_window.show_editor(p))
|
btn.clicked.connect(lambda checked, p=path: self.main_window.show_editor(p))
|
||||||
|
|||||||
Reference in New Issue
Block a user