Qt-interest Archive, April 2007
Re: To exit from a Qt application
Message 1 in thread
Just see "examples" folder and read Qt Assistant
qApp->exit(0);
or
QApplication app(argc, argv);
app.setQuitOnLastWindowClosed(true);
Pankaj ÐÐÑÐÑ:
> Hello,
>
> I am new to Qt. Can anyone tell me how to exit from an application when
> I close a window?
>
> Thanks...
>
>
--
[ signature omitted ]
Message 2 in thread
Hello,
I am new to Qt. Can anyone tell me how to exit from an application when I close a window?
Thanks...
Message 3 in thread
Hi,
Pankaj escribió:
> I am new to Qt. Can anyone tell me how to exit from an application
> when I close a window?
I think this is quite basic in programming but, see the exit() func.
This is a good point to start, also: Hello world
<http://doc.trolltech.com/4.2/tutorial-t1.html>
Cheers,
Javier
--
[ signature omitted ]