[Qt-interest] Comparing two QMetaObjects

Gustavo de Sá Carvalho Honorato gustavohonorato at gmail.com
Fri Feb 4 22:35:56 CET 2011


Hi,

What is the best way to compare two QMetaObjects? I've tried this, but
did not work:

object->metaObject() != QObject::staticMetaObject

I would like the same behave as in Java:

object.getClass() != Object.class

Thanks,
Gustavo



More information about the Qt-interest-old mailing list