The 4.1 designer lets you create actions. I can assign icons to the actions and then use them in the menu and toolbar. What does an action accomplish that a signal from a button, "clicked()" to a slot "handleClick()" doesn't do. The docs on QAction leave a lot to be desired. Does the action aid in the implementation of undo?
I guess I am trying to get a grasp of the intent of QAction and QActionGroup.
M




Reply With Quote

actions emit signals and buttons emit signals. You connect "slots" to both of them, so they have exactly the same capabilities of invoking slots. The difference is that you put actions into toolbars and menus and buttons on the form.

Bookmarks