[Development] Why is QVariant::data() \internal?

Konrad Rosenbaum konrad at silmor.de
Sat Jul 16 13:56:00 CEST 2016


Hi,

I am currently interfacing two libraries that only have QVariant in common, 
most of the (value) types getting exchanged are either Qt containers or 
Q_GADGETs.

I was relatively quick to realize that I needed the QMetaType and 
QMetaObject of these objects, but it took me pretty long to find out that I 
can use QVariant::data() to get at the void* that I need to access 
properties and Q_INVOKABLEs.

Is there a particular reason that QVariant::data() is classified as 
\internal or would a documentation patch be accepted?



	Konrad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20160716/1f6c33c9/attachment.sig>


More information about the Development mailing list