QAction is an implementation of part of the Command Pattern, not a GUI widget. When you addAction() to a tool bar it creates a visible button on your behalf. When you addAction() to a QMenuBar/QMenu widget the widget paints a menu entry for you. QActions added to a QWidget can provide a context menu. The same QAction can be attached to many GUI objects.




Reply With Quote

Bookmarks