Problem regarding GUI application
Hi ,I am using QT4 on windowsXP. I developed a QT GUI application using QMainWindow as main class.Now my problem is ,if I close the window by clicking on close button of window(which is on top most right corner of window) I need to ask wether to close the application or not .if YES then it have to be close or if NO the application should not be close.So suggest me to do this.
So please help me to solve this problem.
With regards ,
Sudheer.
Re: Problem regarding GUI application
You can reimplement closeEvent of QWidget.
Example is here: _https://cgs.hpi.uni-potsdam.de/doxygen/qt/qaction-application-example.html#x1173
Re: Problem regarding GUI application
Thanks a lot for your kind reply.
with regards
sudheer