githubuser0xFFFF / Qt-Advanced-Docking-System

Advanced Docking System for Qt
GNU Lesser General Public License v2.1
1.8k stars 539 forks source link

Window Layouts become "messed up" with multiple monitors. #614

Closed imikejackson closed 5 months ago

imikejackson commented 6 months ago

This is our app when launching on my main monitor:

Screenshot 2024-03-20 at 14 17 44

When we quit the application we save the layout, using the QtADS built in methods, to a preference file. If I relaunch the application but have it launch on my secondary monitor I get the following instead:

Screenshot 2024-03-20 at 14 17 59

Has anyone ever seen this?

We are using commit ed6636a

imikejackson commented 6 months ago

Latest commit does not fix the issue. I'm sure this is a "user" error on our part?

githubuser0xFFFF commented 5 months ago

Do you use different scaling on on both monitors? That means monitor 1 uses 100% scaling and monitor 2 uses 150%.

Btw. when providing bug reports you should provide the following information:

OS: Windows / Linux Qt Version: 5.15.2 or 6.6.2 .... Compiler: MinGW, MSVC17...

Btw, even QWidget::restoreGeometry does not work properly on a multi-monitor system:

https://bugreports.qt.io/browse/QTBUG-70721

So maybe this is an issue caused by using different DPIs on different monitors - I'm just guessing.