Qt is a comprehensive(综合) c++ framework for devleoping cross-platform GUI applications using a "write once,compile anywhere" approach. Qt lets programmers use a single source tree for applicaion
Hello Qt :
1. QApplication :[QtGui module] : this class manage the GUI application' control flow and main settrings. contains the main event loop,where all events form the window system and other sources are processed and dispatched(委派). it also handles the application's initialization,finalization,and provids session management; In addition, QApplication handles most of the system-wide and application-wide settings.
For any GUI application using Qt, there is precisely one QApplication object, no matter whether the application has 0, 1, 2 or more windows at any given time. For non-GUI Qt applications, use QCoreApplication instead, as it does not depend on the QtGui library.
The QApplication object is accessible through the instance() function that returns a pointer equivalent to the global qApp pointer
2 QLabel[QtGui module] The QLabel widget provides a text or image display.A QLabel is often used as a label for an interactive widget. For this use QLabel provides a useful mechanism for adding an mnemonic (see QKeySequence) that will set the keyboard focus to the other widget (called the QLabel's "buddy").
3 Qt is so flexible(灵活) that any widget can be a window. this label is application window;
4 app.exec(), the programe enters the event loop.this is kind of stand-by(备用) mode where the program waits for user action such as mouse clicks and key presses.
we don't bother calling delete on the QLabel object and the end .this memory will be reclaimed(回收) where the programe terminateds;
MAKING CONNECTIONS