zhiyiYo / PyQt-Frameless-Window

A cross-platform frameless window based on pyqt5, support Win32, Linux and macOS.
https://pyqt-frameless-window.readthedocs.io
GNU General Public License v3.0
471 stars 66 forks source link

采用pyside6-6.7.0版本后,windows下面会采用windows11的风格,菜单显示不全。 #153

Closed riverbird closed 1 month ago

riverbird commented 5 months ago

Describe the bug A clear and concise description of what the bug is. 采用pyside6-6.7.0版本后,windows下面会采用windows11的风格,菜单显示不全。

Environment 环境信息

To Reproduce 在其它Qstyle下面正常,但是在windows11的风格下面菜单显示不正常。

Code 最小复现代码

# Minimum code to reproduce the error
self.titleBar.layout().insertWidget(0, menu_bar, 0, Qt.AlignmentFlag.AlignLeft)
        self.titleBar.layout().insertStretch(1, 1)
        self.setMenuWidget(self.titleBar)

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

riverbird commented 5 months ago

微信截图_20240416103002 附上截图。

Cheukfung commented 5 months ago

估计是pysdie6的bug,如果是6.7.0,阴影效果也不行了:https://github.com/zhiyiYo/PyQt-Fluent-Widgets/issues/848

zhiyiYo commented 1 month ago

更换默认 app style 为 fusion 试试