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

使最大化窗口自适应屏幕可用区域 #45

Conversation

pzhlkj6612
Copy link
Member

@pzhlkj6612 pzhlkj6612 commented Jan 7, 2020

在 Windows 10 1903 / macOS 10.14 下测试通过;
而 Ubuntu 18.04 (GNOME Shell 3.28.2) 本身具有这样的特性,本 PR 对其没有影响。

使用QScreen->availableGeometry()获得屏幕可用区域再做运算,而不是把 (0, 0) 作为左上角。

暂时没有考虑多屏幕的情况,所以直接使用QGuiApplication::screens()列表的第一个QScreen的指针。

Use QScreen->availableGeometry() to get the screen Rect.
Copy link

@WangShiSoftware WangShiSoftware left a comment

Choose a reason for hiding this comment

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

ok

@BensonLaur BensonLaur merged commit 065e936 into BesLyric-for-X:master Jan 7, 2020
@pzhlkj6612 pzhlkj6612 deleted the maximum_window_position_fix_all_platforms branch January 7, 2020 11:08
@pzhlkj6612 pzhlkj6612 added the _UI-appearance 不影响功能的界面问题。 label Feb 23, 2020
@pzhlkj6612 pzhlkj6612 added this to the Next Release milestone Feb 24, 2020
@BensonLaur BensonLaur mentioned this pull request Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
_UI-appearance 不影响功能的界面问题。
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants