views:

52

answers:

2

Do you know how to hide minimize, maximize and close buttons of title bar in Qt.

i did it before in some other project but i could not find it now.

could u help me?

especially i need to hide it on QMainWindow

+1  A: 

Just watch how Window Flags Example works!

mosg
thank u mosg. actually my main problem is hiding close button on mainWindow.
ufukgun
A: 

Set this window flags Qt::Window | Qt::WindowTitleHint | Qt::CustomizeWindowHint

Note, that on some platforms it behaves in different way. For example on Mac OS X it Disables, (not hides) close/minimize/maximize buttons

Kamil Klimek