QAction *action = new QAction("Save", this); action->setIcon(QIcon(":/icons/save.png")); connect(action, &QAction::triggered, this, &MyClass::save);This code creates a new QAction object with the label "Save" and sets its icon to a PNG image loaded from a Qt Resource file. It also connects the action's triggered signal to a slot called save() in the current class. Another example using QAction icons is in the Qt Designer, where you can create a menu item and select an icon for it from a list of built-in icons or by using a custom icon. This example demonstrates how to set QAction icons using the Qt Designer GUI tool. The package library for QAction is part of the Qt Core module in the Qt framework.