PyQt-Fluent-Widgets icon indicating copy to clipboard operation
PyQt-Fluent-Widgets copied to clipboard

[Bug]: TransparentDropDownPushButton二级菜单显示位置错误

Open onobug opened this issue 10 months ago • 5 comments

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

onobug avatar Apr 16 '24 13:04 onobug

微信图片_20240416215635

onobug avatar Apr 16 '24 13:04 onobug

同 #792

AlexZhu2001 avatar Apr 18 '24 07:04 AlexZhu2001

已修复,可以关闭问题了

AlexZhu2001 avatar Apr 22 '24 04:04 AlexZhu2001