To use the context menu in
class. When performing actions that should cause the menu handler is called, which creates the menu and binds handlers to act in this menu.
In this lesson, work with the shortcut menu will be shown in the example code from the
tutorial on working with QDataWidgetMapper.
In this lesson, the two files from the previous lesson will be modified, but the project will not work if you do not include it as in the previous lesson files that can not be edited.
Project structure for QMenu
Project structure remains the same as in the tutorial, which is based on the lesson. Changes in the code will be subjected to only two files: