Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix macOS title bar buttons not displaying properly. #75

Merged
merged 1 commit into from
May 4, 2024

Conversation

mentalfl0w
Copy link
Contributor

In order for macOS windows to display buttons properly, we can't hide macOS native buttons, otherwise the title bar will appear on top of the buttons. The easiest manual solution is to refresh the window's flag, but for convenience, it's better to just not hide it.
Fix #60 .

Copy link
Contributor

@SineStriker SineStriker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

麻烦改成不判断qt版本号,hidden统一设置成YES,在setup完毕后使用setWindowAttribute打开。
或者统一修改成NO(我推荐这个)。

In order for macOS windows to display buttons properly, we can't hide macOS native buttons, otherwise the title bar will appear on top of the buttons. The easiest manual solution is to refresh the window's flag, but for convenience, it's better to just not hide it.
@mentalfl0w
Copy link
Contributor Author

好的,统一修改成NO应该能避免出现一些意料外的情况,已经修改。

@SineStriker SineStriker merged commit 0177eed into stdware:main May 4, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MAC OS 13.6.5 (22G621) qml(6.6.2) 系统按钮有bug
2 participants