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,34 @@
# coding:utf-8
import sys
from PySide6.QtCore import Qt
from PySide6.QtWidgets import QApplication, QWidget, QTreeWidgetItem, QFileSystemModel, QHBoxLayout
from qfluentwidgets import TreeWidget, setTheme, Theme, TreeView
class Demo(QWidget):
def __init__(self):
super().__init__()
self.hBoxLayout = QHBoxLayout(self)
self.setStyleSheet("Demo{background:rgb(255,255,255)}")
# setTheme(Theme.DARK)
self.view = TreeView(self)
model = QFileSystemModel()
model.setRootPath('.')
self.view.setModel(model)
self.view.setBorderVisible(True)
self.view.setBorderRadius(8)
self.hBoxLayout.addWidget(self.view)
self.hBoxLayout.setContentsMargins(50, 30, 50, 30)
self.resize(800, 660)
if __name__ == '__main__':
app = QApplication(sys.argv)
w = Demo()
w.show()
sys.exit(app.exec())