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

From KDE TechBase
Revision as of 07:31, 26 October 2019 by FuzzyBot (talk | contribs) (Importing a new version from external source)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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).