ddobrev / QtSharp

Mono/.NET bindings for Qt
Other
571 stars 52 forks source link

QVariant value<QObject>(), qvariant_cast, qobject_cast implementation #81

Open iWeaverMan opened 5 years ago

iWeaverMan commented 5 years ago

How to get an object value from qvariant, the generated class does not have this method? And how to create a variant based on an qobject or other objects?

ddobrev commented 5 years ago

value() is a template function which we don't support yet. I am afraid that this makes QVariant mostly useless in QtSharp. I'll close this issue when it's fixed.