Exercise 5: QT - Tutorial, Chapter 1-3: Winter Term 2012/13
This document provides instructions for learning the basics of Qt programming through exercises with the first three chapters which introduce signal-and-slot mechanisms. It outlines downloading tutorial sources, compiling a program by using qmake and make commands after changing directories, and modifying the tutorial program to reopen the window after the first close and terminate after the second close.
Exercise 5: QT - Tutorial, Chapter 1-3: Winter Term 2012/13
This document provides instructions for learning the basics of Qt programming through exercises with the first three chapters which introduce signal-and-slot mechanisms. It outlines downloading tutorial sources, compiling a program by using qmake and make commands after changing directories, and modifying the tutorial program to reopen the window after the first close and terminate after the second close.
In this exercise, you will be learning the basics of Qt programming. The rst three chapters introduce the signal-and-slot mechanism. The manual is available at /opt/qt-tut/html/tutorial.html. Get a copy of the sources from either /opt/qt-tut/source or the classs web page http://www.imd.uni-rostock.de/ma/rs/lv/hoqt/tutorials.zip To compile a program, do the following steps: 1. Download the tutorial sources and store them in a directory of your choice. 2. Change to that directory by using the command cd <directory-name> in a shell. 3. Unpack the material by using unzip tutorials.zip or just copy the sources from /opt/qt-tut/source. 4. Go to the directory of a tutorial you are interested in. There, type qmake and then make. Work through the rst three chapters. Modify the tutorial program in a way that the hello-window appears again after the rst close and that the program terminates after the second one. Have fun, Matthias and Ralf