qt:quitting
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
qt:quitting [2011/03/30 22:16] – mithat | qt:quitting [2011/03/31 10:06] (current) – [Quitting] mithat | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Quitting ====== | ====== Quitting ====== | ||
- | There are quite a few ways to terminate a Qt app that you might wonder what the BlessedHolyWay is. I'm not sure that I've figured that out, but for now I will document the different ways that are available of which I am aware. | + | There are a few ways to terminate a Qt app and so you might wonder what the BlessedHolyWay is. I'm not sure that I've figured that out, but for now I will document the different ways that are available of which I am aware. |
===== QApplication:: | ===== QApplication:: | ||
Line 45: | Line 45: | ||
<code cpp>void QCoreApplication:: | <code cpp>void QCoreApplication:: | ||
- | Tells the application to exit with return code 0 (success). Equivalent to calling QCoreApplication:: | + | Tells the application to exit with return code 0 (success). Equivalent to calling |
- | It's common to connect the '' | + | It's common to connect the '' |
Example:< | Example:< | ||
Line 53: | Line 53: | ||
connect(quitButton, | connect(quitButton, | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | See also QWidget:: | ||
qt/quitting.txt · Last modified: 2011/03/31 10:06 by mithat