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,35 @@
# coding:utf-8
import sys
from PySide6.QtCore import Qt
from PySide6.QtGui import QPainterPath, QPixmap
from PySide6.QtWidgets import QApplication, QWidget
from qfluentwidgets.components.widgets.acrylic_label import AcrylicBrush
class Demo(QWidget):
def __init__(self):
super().__init__()
self.resize(400, 400)
self.acrylicBrush = AcrylicBrush(self, 15)
path = QPainterPath()
path.addEllipse(0, 0, 400, 400)
self.acrylicBrush.setClipPath(path)
self.acrylicBrush.setImage(QPixmap('resource/shoko.png').scaled(
400, 400, Qt.KeepAspectRatio, Qt.SmoothTransformation))
def paintEvent(self, e):
self.acrylicBrush.paint()
super().paintEvent(e)
if __name__ == '__main__':
app = QApplication(sys.argv)
w = Demo()
w.show()
app.exec()

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 KiB