Closed LittleNyima closed 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
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.
和另一个issue重复了
v1.0.1 已修复此问题
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 最小复现代码
Expected behavior A clear and concise description of what you expected to happen.
应该没有左上角的控制按钮
Screenshots If applicable, add screenshots to help explain your problem.