PyQt-Fluent-Widgets
PyQt-Fluent-Widgets copied to clipboard
[Bug]: TransparentDropDownPushButton二级菜单显示位置错误
What happened?
二级菜单显示每次增加20px位置偏差
Operation System
windows
Python Version
py3.11
PyQt/PySide Version
pyside
PyQt/PySide-Fluent-Widgets Version
1.5.1
How to Reproduce?
多次点击按钮,调用二级菜单
Minimum code
def createDropDownButton(self):
button = TransparentDropDownPushButton('Menu', self, FluentIcon.MENU)
button.setFixedHeight(34)
setFont(button, 12)
menu1 = RoundMenu(parent=self)
menu1.addActions([
Action(FluentIcon.COPY, 'Cosdfdfdpy'),
Action(FluentIcon.CUT, 'Cutsdfsdfsfdfd'),
Action(FluentIcon.PASTE, 'Paste'),
Action(FluentIcon.CANCEL, 'Cancel'),
Action('Select all'),
])
menu = RoundMenu(parent=self)
menu.addActions([
Action(FluentIcon.COPY, 'Cosdfdfdpy'),
Action(FluentIcon.CUT, 'Cutsdfsdfsfdfd'),
Action(FluentIcon.PASTE, 'Paste'),
Action(FluentIcon.CANCEL, 'Cancel'),
Action('Select all'),
])
menu.addMenu(menu1)
button.setMenu(menu)
return button
同 #792
已修复,可以关闭问题了