-
Notifications
You must be signed in to change notification settings - Fork 170
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
How to make floating window with fixed size #345
Comments
Hi, Can you try kddockwidgets_example -g That calls: myWidget->setMaximumSize(200, 200); which works Maybe there's an edge case where this doesn't work. Ideally please show through modifying the example (attach a patch that I can repro). Or maybe it's platform specific, we'll find out. |
So you're saying, if you edit MyMainWindow.cpp , and replace "setMaximumSize" with "setFixedSize" it stops working ? I've tried on Windows 10 / Qt 5 / KDDW-1.7 latest , and both work, floating window is not resizable past its max Do you have maybe other changes in MyMainWindow.cpp that are conflicting ? |
No. No other changes. Clean build. Using Qt 5.15.1 and KDDW in release build. |
Can you:
|
|
This is even more strange, as your floating windows have Qt::Window instead of Qt::Tool. The example might be picking some other KDDW dll you have, possible patched with different Config::flags() ? please double check. meanwhile I'll prepare another round of debug info to figure this out :) |
This time I did a fresh clone of the kddw repo:
Same results. |
ok, please pull test/345 again (should be 3e6e090) and repeat please |
|
Thank you, that helped me track down a local problem. My example for some reason was running with "compatibility for windows 8". Disabling that, I've now reproduced your problem |
I want to have a floating window with a fixed size
How can I achieve this?
The text was updated successfully, but these errors were encountered: