Close Button on Modal Widget?
Hi All,
I have a widget which open on a dialog.
I have set the modality of that widget by using
Code:
this->setWindowModality (Qt::ApplicationModal);
This works fine in the sense that it open a modal widget but the problem is that it does not show the close button on the upper left corner.
So how should I make a modal widget with close button enabled.
Thanks.
Re: Close Button on Modal Widget?
QDialog::exec() might be a bit less error-prone way to handle modal dialogs...
Re: Close Button on Modal Widget?
Thanks for Reply.
But Actually I am using QWidget not QDialog.
Re: Close Button on Modal Widget?
Even If I use QDialog still I am not getting close button.
I am opening the dialog on a Widget.
Re: Close Button on Modal Widget?
Which version of Qt? Here's one relevant bug I could find but it was already fixed to Qt 4.1.3: http://trolltech.com/developer/task-...entry&id=95836
Re: Close Button on Modal Widget?
I am using Qt 4.2.2.
Do I need to set some flags.