Unnamed
public python v1 · immutablefrom PyQt4 import QtCorefrom PyQt4 import QtGui# This worksi = QtGui.QIcon()qi = QtCore.QVariant(i)# This throws TypeError: argument 1 of QVariant() has invalid typeclass C: def __init__(self, v): self.value = vx = C(100)qx = QtCore.QVariant(x)