zhiyiYo / PyQt-Fluent-Widgets

A fluent design widgets library based on C++ Qt/PyQt/PySide. Make Qt Great Again.
https://qfluentwidgets.com
GNU General Public License v3.0
5.61k stars 541 forks source link

1.0.0版本的gallery demo在MacOS下系统原生控制按钮与框架的控制按钮同时存在 #323

Closed LittleNyima closed 1 year ago

LittleNyima commented 1 year ago

Describe the bug A clear and concise description of what the bug is. 问题的简要描述。

如题,1.0.0版本的gallery demo在MacOS下系统原生控制按钮与框架的控制按钮同时存在,在之前的版本里没有这个现象。这个应该不是框架的错误导致的,而是不知道出于什么原因,重载系统标题栏的代码在这个版本里被去掉了,所以系统的原生控制按钮也保留了下来。具体情况参见截图。

Environment 环境信息

To Reproduce 复现问题的步骤,推荐使用 gif 进行演示。 Steps to reproduce the behavior(you can use gif to demonstrate the problem:)

直接运行 examples/gallery/demo.py

Code 最小复现代码

import sys

from PySide6.QtCore import Qt
from PySide6.QtWidgets import QApplication
from qfluentwidgets import FluentWindow

class MainWindow(FluentWindow):

    def __init__(self):
        super().__init__()

if __name__ == '__main__':
    app = QApplication(sys.argv)
    app.setAttribute(Qt.AA_DontCreateNativeWidgetSiblings)

    w = MainWindow()
    w.show()

    app.exec()

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

应该没有左上角的控制按钮

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

screenshot-0

screenshot-1

zhiyiYo commented 1 year ago

和另一个issue重复了

zhiyiYo commented 1 year ago

v1.0.1 已修复此问题