[Qt-interest] Comparing two QMetaObjects
Thiago Macieira
thiago at kde.org
Sun Feb 6 23:50:03 CET 2011
On Friday, 4 de February de 2011 19:35:56 Gustavo de Sá Carvalho Honorato
wrote:
> Hi,
>
> What is the best way to compare two QMetaObjects? I've tried this, but
> did not work:
>
> object->metaObject() !
metaObject() returns a QMetaObject*
staticMetaObject is a QMetaObject.
You can't compare a struct to a pointer. Either compare struct to struct (if
they have operator=) or pointer to pointer.
For QMetaObject, simply compare pointers.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110206/cab0b906/attachment.bin
More information about the Qt-interest-old
mailing list