PyQt-Frameless-Window icon indicating copy to clipboard operation
PyQt-Frameless-Window copied to clipboard

[Bug]: Window cannot maximize as expected when system taskbar is not on the bottom.

Open ridethepig opened this issue 1 year ago • 3 comments

What happened?

image As you can see, the main window cannot maximize normally, leaving strange margins around the window.

However, it works as expected when the system taskbar is on the bottom. It also works well when DPI scaling is disabled as you can see below. image I suspect that this is related to the frameless window...

Another thing worth mentioning is that, if I maximize the window with Meta(Windows Logo) + Up shortcut, it works well again...

My monitor setting is: 2256*1504 with 175% scaling.

Operation System

Windows10 22H2

Python Version

3.11.0 amd64

PyQt/PySide Version

PyQt 5.15.10

PyQt/PySide-Fluent-Widgets Version

1.4.0

How to Reproduce?

Pull your taskbar to the left/right/top, run the gallery demo(/examples/gallery/demo.py), and then maximize it.
Remind the dpi setting

Minimum code

# It is the gallery demo in the example code.

ridethepig avatar Nov 25 '23 13:11 ridethepig

应该是无边框窗口的问题,但是我没有 Win10 系统,测试不了

zhiyiYo avatar Nov 26 '23 10:11 zhiyiYo

在Win10 22H2,1920*1080,DPI: 100%, 110%, 125%, 175%均无法复现,是不是因为分辨率太奇怪导致的

AlexZhu2001 avatar Mar 12 '24 05:03 AlexZhu2001

Well, it is possible... Maybe some tricky corner case, and I suspect Windows is to blame But I am no longer using this framework, thank you anyway.

ridethepig avatar Mar 18 '24 05:03 ridethepig