Make QVariant::setValue work for classes from QtGui module