User Tools

Site Tools


qt:quitting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
qt:quitting [2011/03/30 22:16] mithatqt:quitting [2011/03/30 22:18] – [QCoreApplication::quit ()] mithat
Line 45: Line 45:
  
 <code cpp>void QCoreApplication::quit () [static slot]</code> <code cpp>void QCoreApplication::quit () [static slot]</code>
-Tells the application to exit with return code 0 (success). Equivalent to calling QCoreApplication::exit(0).+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.+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.
  
 Example:<code cpp> Example:<code cpp>
Line 53: Line 53:
 connect(quitButton, SIGNAL(clicked()), &app, SLOT(quit()));</code>((http://doc.trolltech.com/latest/qcoreapplication.html#quit)) connect(quitButton, SIGNAL(clicked()), &app, SLOT(quit()));</code>((http://doc.trolltech.com/latest/qcoreapplication.html#quit))
  
- 
- 
- 
- 
- 
- 
- 
-See also QWidget::close(). 
  
  
qt/quitting.txt · Last modified: 2011/03/31 10:06 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki