Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
onobug opened this issue Apr 16, 2024 · 3 comments
Open

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

onobug opened this issue Apr 16, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@onobug
Copy link

onobug commented Apr 16, 2024

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 onobug added the bug Something isn't working label Apr 16, 2024
@onobug
Copy link
Author

onobug commented Apr 16, 2024

微信图片_20240416215635

@AlexZhu2001
Copy link
Contributor

#792

@AlexZhu2001
Copy link
Contributor

已修复,可以关闭问题了

@onobug onobug closed this as completed Apr 22, 2024
@zhiyiYo zhiyiYo reopened this Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants