You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# coding:utf-8importsysfromPySide6.QtWidgetsimportQApplication, QWidgetfromqfluentwidgetsimportDialog, PrimaryPushButtonclassDemo(QWidget):
def__init__(self, parent=None):
super().__init__(parent=parent)
self.resize(950, 500)
self.btn=PrimaryPushButton('Click Me', parent=self)
self.btn.move(425, 225)
self.btn.clicked.connect(self.showDialog)
self.setStyleSheet('Demo{background:white}')
defshowDialog(self):
title='Are you sure you want to delete the folder?'content="""If you delete the "Music" folder from the list, the folder will no longer appear in the list, but will not be deleted."""w=Dialog(title, content, self)
ifw.exec():
print('Yes button is pressed')
else:
print('Cancel button is pressed')
if__name__=='__main__':
app=QApplication(sys.argv)
w=Demo()
w.show()
app.exec()
The text was updated successfully, but these errors were encountered:
What happened?
无边框对话框打开的一瞬间会显示最大,最小,关闭按钮,然后再消失
Operation System
windows10
Python Version
3.10.7-64bit
PyQt/PySide Version
pyside6.6.2
PyQt/PySide-Fluent-Widgets Version
1.5.3
How to Reproduce?
点击按钮,弹出无边框对话框
Minimum code
The text was updated successfully, but these errors were encountered: