PDA

View Full Version : (QtDialog | Qt::WindowCloseButtonHint) doesnt work on linux



nileshsince1980
3rd December 2009, 06:28
Hi All,
I have created application which opens dialog box, I just want to have close button on it with title. so I have set windows flags (Qt::Dialog |Qt::WindowCloseButtonHint) .
It is working fine on WindowsXP but not on linux.
On Linux, dialog box gets windows flags from parent window. even i set above flags it ignores.
Please tell me how to set only (Qt::Dialog |Qt::WindowCloseButtonHint) flags on linux,.

I am using Qt 4.5.1/Windowz XP/ SUSE linux.

Thanks in advance.
Nilesh

wysota
3rd December 2009, 08:34
Try passing also Qt::CustomizeWindowHint.