This is stored as `ThumbnailSVGRole`
thumb = self.data(ThumbnailSVGRole)
if thumb.isValid():
return thumb.toString()
def setThumbnail(self, thumbnail):
Set the thumbnail SVG contents as a string.
When set it also overrides the icon role.
After Change
This is stored as `ThumbnailSVGRole`
thumb = self.data(ThumbnailSVGRole)
if thumb is not None:
return thumb
def setThumbnail(self, thumbnail):
Set the thumbnail SVG contents as a string.
When set it also overrides the icon role.