qwindowkit
qwindowkit copied to clipboard
MacOS - Qt 6.8.2 - The content of the window is offset by the size of the title bar in the QWidget version
System: macOS Sonoma Qt Version: 6.8.2
As in the title, in qt 6.8, changes were made that break QWidget version of QWK. Everything works okey with Qt 6.6.3. QML version works fine on both Qt versions.
Qt 6.8.2 (space above custom title bar is not interactive and window can't be dragged by grabbing it)
Qt 6.6.3
Try the following code:
setAttribute(Qt::WA_ContentsMarginsRespectsSafeArea, false);
It is a solution but it is only available starting from Qt 6.9.
@zhiyiYo That helped me a lot, thanks!