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

From KDE TechBase

They are very simple to use. Once the library has been included (#include <KStandardAction>), simply supply it with what you want the function to do and which QActionCollection to add it to. For example: