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

"... Unable to set geometry ..." if dock-widget undocked at negative screen coordinates #358

Closed
bbc131 opened this issue May 11, 2023 · 3 comments

Comments

@bbc131
Copy link
Contributor

bbc131 commented May 11, 2023

I get a "QWindowsWindow::setGeometry: Unable to set geometry ..." message printed, when I undock a dock-widget within a screen, which has negative coordinates.

For example, I have three screens where the rightmost is the primary one. Therefore the center and right screen have all negative x coordinates.
In a simple example I create a MainWindow and add a DockWidget to it.
If I undock the dock-widget while the main-window is within the center or left screen the following message is printed. This doesn't happen, if the main-window is within the right screen.

QWindowsWindow::setGeometry: Unable to set geometry 598x394+0+369 (frame: 598x394+0+369) on QWidgetWindow/"KDDockWidgets::FloatingWindowClassWindow" on "\\.\DISPLAY6". Resulting geometry: 614x433-8+338 (frame: 614x433-8+338) margins: 0, 0, 0, 0 minimum size: 88x128 MINMAXINFO maxSize=0,0 maxpos=0,0 mintrack=88,128 maxtrack=0,0)

I found this Issue #321, which is not related directly, but the problem reasons could be similar.

@iamsergio
Copy link
Contributor

Is there any visual problems besides the message ? afaik windows will place it at the correct position and account for the 8px frame margin.

It's difficult to fix this in kddw as every window manager is different

@bbc131
Copy link
Contributor Author

bbc131 commented May 16, 2023

No, I don't see any visual problems, it's just the message.

@iamsergio
Copy link
Contributor

Ok will close. It's a very common message on Windows, even with non-KDDW Qt applications

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

2 participants