Thanks.

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