Hai
can we dsable the close button of a dialog during runtime, till some process gets executed.After this process gets executed i want to retain tthe close button to enabled state.
Regards and Thanks ,
vinayasheela
Hai
can we dsable the close button of a dialog during runtime, till some process gets executed.After this process gets executed i want to retain tthe close button to enabled state.
Regards and Thanks ,
vinayasheela
You can override the closeEvent and ignore() the event if you don't want your widget closed.
i dont want it(closed button) to be in disabled state only.After some process gets executed i want it to get back to the original state i.e enabled state.
thanks
If you want the behaviour to change then just stop ignoring the event...
Qt Code:
if(someVar==true) e->ignore(); else e->accept(); }To copy to clipboard, switch view to plain text mode
vinnu (17th November 2006)
Bookmarks