Hi All,

I have a widget which open on a dialog.
I have set the modality of that widget by using

Qt Code:
  1. this->setWindowModality (Qt::ApplicationModal);
To copy to clipboard, switch view to plain text mode 

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.