Logo Search packages:      
Sourcecode: qt4-x11 version File versions

void QCoreApplication::quit (  )  [static, slot, inherited]

Tells the application to exit with return code 0 (success). Equivalent to calling QCoreApplication::exit(0).

It's common to connect the QApplication::lastWindowClosed() signal to quit(), and you also often connect e.g. QAbstractButton::clicked() or signals in QAction, QMenu, or QMenuBar to it.


doc/src/snippets/code/src_corelib_kernel_qcoreapplication.cpp 1

See also:
exit(), aboutToQuit(), QApplication::lastWindowClosed()

Definition at line 1423 of file qcoreapplication.cpp.

References QCoreApplication::exit().

Referenced by QCoreApplication::event(), and MainWindow::keyPressEvent().


Generated by  Doxygen 1.6.0   Back to index