initial fluent-widgets ui

This commit is contained in:
2025-08-14 18:45:16 +08:00
parent 746e83ab23
commit 4c66886257
1198 changed files with 805339 additions and 0 deletions

View File

@ -0,0 +1,36 @@
# coding:utf-8
import sys
from PySide6.QtCore import Qt
from PySide6.QtGui import QIcon
from PySide6.QtWidgets import QApplication, QWidget, QHBoxLayout, QVBoxLayout
from qfluentwidgets import ImageLabel
class Demo(QWidget):
def __init__(self):
super().__init__()
self.imageLabel = ImageLabel("resource/Gyro.jpg")
self.gifLabel = ImageLabel("resource/boqi.gif")
self.vBoxLayout = QVBoxLayout(self)
# change image
# self.imageLabel.setImage("resource/boqi.gif")
self.imageLabel.scaledToHeight(300)
self.gifLabel.scaledToHeight(300)
self.imageLabel.setBorderRadius(0, 30, 30, 0)
self.gifLabel.setBorderRadius(10, 10, 10, 10)
self.vBoxLayout.addWidget(self.imageLabel)
self.vBoxLayout.addWidget(self.gifLabel)
if __name__ == '__main__':
app = QApplication(sys.argv)
w = Demo()
w.show()
app.exec()

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 393 KiB