How to hide windows close/minimize/maximize button on titlebar?
-
Look at setWindowsFlags() method.
"The CustomizeWindowHint flag is used to enable customization of the window controls. This flag must be set to allow the WindowTitleHint, WindowSystemMenuHint, WindowMinimizeButtonHint, WindowMaximizeButtonHint and WindowCloseButtonHint flags to be changed."
-
I am working on Windows. I checked the "Window flags" example before and it would fit my application.
If I set:
@setWindowFlags(Qt::WindowTitleHint | Qt::CustomizeWindowHint);@
I can get rid of 3 buttons. But the icon also gone(I need the icon). If I do not set as above, the 3 buttons always there.
-