View Full Version : window style and form close query

16th January 2010, 00:42
Hi all,

I need some help on the forms.

how can I have a form with only title and without close, min, max button?

Qt::WindowFlags flags;
flags = Qt::Window | Qt::FramelessWindowHint | Qt::WindowTitleHint;

tried this but did not work.

Another problem is
How can I do something on form close event? what signal should I use?

I am using forms are Qwidgets not dialog.

22nd January 2010, 10:29
You have to use Qt::CustomizeWindowHint as well. And don't use the frameless window hint, of course.

23rd January 2010, 22:49
thank. I manage to get it to work