Suppose you have a lot of menu items, yet not every user needs all of them and different users need different set of menu items. I bet you would allow your users to customize menus, but how?
You need a list of objects that describe all possible menu items. Such object would have to hold some text, an icon, tool tip, status tip, "What's this?" text, shortcut and some information about the method that must be called when the menu item is activated and so on.
Which class you should use in such situation?
PS. In fact there is no QMenuItem class in Qt 4 (except for Qt 3 Support module). Guess what class is there instead![]()
Bookmarks