PDA

View Full Version : showing close Button(x) in QDialog



vishal.chauhan
3rd April 2007, 10:25
Hi All,

I m using Qt 4.2.2 on my Intel Mac.
I have a QDialog and when I run the Application this QDialog does not show the close(X) button.I donot understand why it is so?

If any body knows then plz help me.

Thanks.

high_flyer
3rd April 2007, 10:51
some code would help to understand the problem.

vishal.chauhan
3rd April 2007, 11:03
Hi,

Actually I have a QDialog and two text edit and three buttons.

As you can see The dialog does not show the Colse(X) button on the upper left Corner.

high_flyer
3rd April 2007, 11:44
what are the 3 buttons in the upper left corner then?

vishal.chauhan
3rd April 2007, 13:23
Hi see these buttons which r disabled.
These r Buttons which r displayed in any window.

patrik08
4th April 2007, 02:05
Hi see these buttons which r disabled.
These r Buttons which r displayed in any window.


setWindowFlags ( Qt::Popup ); set the appropriate flags http://doc.trolltech.com/4.2/qwidget.html#windowFlags-prop on flag you can display or not
button close ecc... You work on the new XCODE xcode_2.4.1_8m1910_6936315.dmg 1GB compiler package?

vishal.chauhan
4th April 2007, 10:01
Thanks.

Actually by this I can remove the Disabled buttons but I want that It should show the close(X) button on the QDialog.