Discover DiscoverWindow.qml defines a refresh action: Kirigami.Action { id: refreshAction readonly property QtObject action: ResourcesModel.updateAction text: action.text onTriggered: action.trigger() enabled: action.enabled tooltip: shortcut shortcut: "Ctrl+R" } Discover updatesPage.qml uses it as a contextual action: contextualActions: [refreshAction] This works, and the action shows up as a toolbar button on the Updates page. But it doesn't have an icon. When I try to add one: @@ -89,6 +89,7 @@ Kirigami.ApplicationWindow id: refreshAction readonly property QtObject action: ResourcesModel.updateAction text: action.text + icon: "view-refresh" onTriggered: action.trigger() enabled: action.enabled tooltip: shortcut ...it doesn't work: $ plasma-discover QQmlApplicationEngine failed to load component qrc:/qml/DiscoverWindow.qml:92 Invalid property assignment: unsupported type "ActionIconGroup_QMLTYPE_11*"
Wrong API. It's icon.name or iconName. You will only get the icon on the tool button from Qt 5.10 on.
Jeez, my brain must not have been fully on yet.