I have an icon shown using a QtSvgWidget, and need to make it clickable but not sure how..
This is my relevant code:
This is my relevant code:
from PyQt6 import QtSvgWidgets icon_info = QtSvgWidgets.QSvgWidget('../img/ic_info_blue_24px.svg') icon_info.setFixedSize(24, 24) # on left mouse click, run this... def foo(id): # do something