Qt-Nice-Frameless-Window
Qt-Nice-Frameless-Window copied to clipboard
On Windows OS: 如果窗口设为固定大小,会弹出QWindowsWindow::setGeometry: Unable to set geometry 500x300+640+280 on QWidgetWindow/'MainWindowWindow'. Resulting geometry: 516x339+640+280 (frame: 0, 0, 0, 0, custom margin: 0, 0, 0, 0, minimum size: 500x300, maximum size: 500x300).
这种问题我也没有精力一一测试,应该还有很多跟size、rect相关的小问题,但是并不影响使用,只能建议你,最好全部使用Qt Layout Management自动管理窗口布局,不要硬编码布局。
Many potential size-like/rect-like issues may still remain under cover, to avoid all this annoying issues, the best practice is to use Qt Layout Management instead of hard-code layout management.