so I am trying to make a QMenu have some icons but I am having no success.
I have no idea if there is a way to by pass this.
Minimal replaceable example for scripter:
from krita import *
from PyQt5 import QtWidgets, QtCore, QtGui, uic
icon = Krita.instance().icon('folder-pictures')
string = "Preview"
act = QAction()
act.setIcon(icon)
act.setText(string)
cmenu = QMenu()
cmenu_preview = cmenu.addAction( act )
cmenu_grid = cmenu.addAction("Grid")
cmenu_reference = cmenu.addAction("Reference")
# Execute
position = QPoint(100,100)
action = cmenu.exec_(position)
# Triggers
if action == cmenu_preview:
pass
if action == cmenu_grid:
pass
if action == cmenu_reference:
pass

