Translations:Development/Tutorials/Using Actions/24/en

From KDE TechBase

Now that we have our QAction object, we can start setting its properties. The following code sets the text that will be displayed in the menu and with the QAction's icon in the toolbar, depending on the widget style (whether beside or below the icon) or setting (whether to display the action text or not).