I did it a few minutes ago for my application. In main.cpp, write:
Now you do not have close button, neither a menu close and ALT-F4 won't work.widget.setWindowFlags ( Qt::CustomizeWindowHint | Qt::WindowTitleHint);
widget.show();
Hope this can be helpful.
I'm using Qt4 under Linux
Bookmarks