diff --git a/qtapputils/widgets/about.py b/qtapputils/widgets/about.py index 5a34c72..ddb14a9 100644 --- a/qtapputils/widgets/about.py +++ b/qtapputils/widgets/about.py @@ -27,6 +27,7 @@ def __init__(self, icon: QIcon, title: str, appname: str, website_url: str, banner_fpath: str, + system_info: str = None, license_fpath: str = None, parent: QWidget = None, ): @@ -37,12 +38,18 @@ def __init__(self, icon: QIcon, title: str, self.setWindowIcon(icon) self.setWindowTitle(title) + pixmap = QPixmap(banner_fpath) + self.label_pic = QLabel(self) + self.label_pic.setPixmap( + pixmap.scaledToWidth(450, Qt.SmoothTransformation)) + self.label_pic.setAlignment(Qt.AlignTop) + # Get current font properties font = self.font() font_family = font.family() font_size = font.pointSize() - self.label = QLabel(( + text = ( """