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,33 @@
# coding:utf-8
import sys
from PySide6.QtCore import Qt
from PySide6.QtGui import QPixmap, QMovie
from PySide6.QtWidgets import QApplication, QWidget, QHBoxLayout
from qfluentwidgets import AvatarWidget
class Demo(QWidget):
def __init__(self):
super().__init__()
self.resize(400, 300)
self.setStyleSheet('Demo {background: white}')
self.hBoxLayout = QHBoxLayout(self)
avatar = QPixmap('resource/shoko.png')
# avatar = 'resource/boqi.gif'
sizes = [96, 48, 32, 24]
for s in sizes:
w = AvatarWidget(avatar, self)
w.setRadius(s // 2)
self.hBoxLayout.addWidget(w)
if __name__ == '__main__':
app = QApplication(sys.argv)
w = Demo()
w.show()
app.exec()

Binary file not shown.

After

Width:  |  Height:  |  Size: 393 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 KiB