C-Programmierung

Qt Framework

Qt App Menu | | Interfaces

Access the complete Qt example listing via WebSVN:

Checkout the Qt example via SVN:

svn co svn://schorsch.efi.fh-nuernberg.de/qt-framework

To compile the frame work on Ubuntu make sure that you have Qt installed on Ubuntu:

  • sudo apt-get install libqt4-dev

Then build the frame work with CMake:

  • cmake . && make

A brief description of the frame work modules referred to in this lecture:

main.cppinstantiates a QApplication and MainWindow object
mainwindow.cpp/.himplements the MainWindow class by deriving from QMainWindow. Has an app menu and a central widget PainterWidget
painterwidget.cpp/.himplements the PainterWidget class, that is a widget with a custom background

For more information about Qt, see the Qt developer web site, the Qt documentation or study the Qt lecture.

Qt App Menu | | Interfaces

Options: