QSvgWidget("path/to/image_on_my_hard_drive.svg")
I was wondering if it's possible to achieve the same result with an SVG embedded in my HDA? Alternatively, a regular pixmap or something would be okay too.
QSvgWidget("path/to/image_on_my_hard_drive.svg")
from PySide6.QtSvgWidgets import QSvgWidget from PySide6.QtCore import QByteArray icon_data = hou.readFile("opdef:/Driver/at_deadline?IconSVG") icon_widget = QSvgWidget() icon_widget.load(QByteArray(icon_data)) icon_widget.setFixedSize(32, 32)