C++ (Qt)bool qVariantCanConvert<T>( const QVariant & value )bool QVariant::canConvert<T>() const
C++ (Qt)variant.userType() == qMetaTypeId< MyType >()