I have an application that uses a custom window frame that is implemented by hiding the main application frame (via Qt::FramelessWindowHint) and giving it an appropriate mask.
Everything is working properly, except when I try to maximize the application. When maximized, the top border of the custom window is offset by the height of the masked Windows frame titlebar. I've tried using the setGeometry() command on the main window to offset the custom window frame slightly when maximized, but for some reason it doesn't want to set the new geometry if an x-coordinate of less than 5 is given (I'd like to keep the x coordinate at 0 and have the y coordinate be the negative of whatever the masked Windows frame titlebar is).
Any help on this is greatly appreciated.![]()
Bookmarks