C-Programmierung

Qt App Menu

Spezialisierung einer Qt Klasse | | Qt Framework

Q How do we get a menu in our application?

We do not derive from QWidget but from QMainWindow, which in turn derives from QWidget and specializes it by adding a menu bar!

A graphical overview of the Qt class hierachy is shown in the Qt class chart Δ.

More background information on UI development with Qt is available in the Qt-Development lecture.

To check out the first Qt example of the above Qt lecture we use subversion on the command line:

svn co svn://schorsch.efi.fh-nuernberg.de/qt-examples/example-01

Then compile with CMake and execute:

cd example-01
cmake . && make && ./main


Spezialisierung einer Qt Klasse | | Qt Framework

Options: