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

Floating windows increase size on restoration #371

Open
bbc131 opened this issue Jul 4, 2023 · 4 comments
Open

Floating windows increase size on restoration #371

bbc131 opened this issue Jul 4, 2023 · 4 comments
Assignees

Comments

@bbc131
Copy link
Contributor

bbc131 commented Jul 4, 2023

When I save and restore the layout of some dockwidgets, I experience the problem, that floating windows are restored with an increased size.

This can be reproduced with the kddockwidgets_example:
I placed two floating windows in front of the mainwindow (mainwindow is restored correctly). Then I simply save the layout and restore it again via Save Layout / Restore Layout in the File menu. On restore, the two floating windows change their size as can be seen in the screenshots.

Before
20230704_before

Restored
20230704_after

Two observations:

  1. This happens only if I place the mainwindow on screen 1 or 2 of my 3 screens.
    When I place the mainwindow on screen 3, it works perfectly fine.
    It is independent of where the floating windows are placed. This means, I can place one floating window on each screen and depending on where the mainwindow is placed, the problem occurs for all or for none of the floating windows.
    I'm using Win10 with three screens aligned as can be seen below. Screen 3 is the primary screen.
    20230704_screen_setup

  2. If the problem occurs, I get the following prints:

QWindowsWindow::setGeometry: Unable to set geometry 213x148-2701+57 (frame: 213x148-2701+57) on QWidgetWindow/"KDDockWidgets::FloatingWindowClassWindow" on "\\.\DISPLAY2". Resulting geometry: 229x187-2709+26 (frame: 229x187-2709+26) margins: 0, 0, 0, 0 minimum size: 35x38 MINMAXINFO maxSize=0,0 maxpos=0,0 mintrack=35,38 maxtrack=0,0)
QWindowsWindow::setGeometry: Unable to set geometry 241x176-2756+316 (frame: 241x176-2756+316) on QWidgetWindow/"KDDockWidgets::FloatingWindowClassWindow" on "\\.\DISPLAY2". Resulting geometry: 257x215-2764+285 (frame: 257x215-2764+285) margins: 0, 0, 0, 0 minimum size: 35x38 MINMAXINFO maxSize=0,0 maxpos=0,0 mintrack=35,38 maxtrack=0,0)

This reminds me on issue #358, maybe it is related.

@Chicou
Copy link

Chicou commented Aug 8, 2023

Yep same issue
The floating window on the second screen is 8 pixel ( left right & up & down ) bigger than the screen size....

@iamsergio iamsergio self-assigned this Aug 8, 2023
@iamsergio
Copy link
Contributor

@Chicou Windows too ?

@Chicou
Copy link

Chicou commented Aug 8, 2023 via email

@bbc131
Copy link
Contributor Author

bbc131 commented Nov 14, 2024

This problem is still present, are there any plans to address it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants