static const char qt_meta_stringdata_frmNotation[] = { "frmNotation\0"};void *frmNotation::qt_metacast(const char *_clname){ if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_frmNotation)) return static_cast<void*>(const_cast< frmNotation*>(this)); if (!strcmp(_clname, "Ui::frmNotation")) return static_cast< Ui::frmNotation*>(const_cast< frmNotation*>(this)); return QDialog::qt_metacast(_clname);}
C++ (Qt)class myClass1 {}class myClass2 {}...class myClassN {} myClass1* myCl1 = new myClass1;myClass2* myCl2 = new myClass2;...myClassN* myClN = new myClassN; QList<QObject*> myObjList; myObjList.append(myCl1);myObjList.append(myCl2);...myObjList.append(myClN); myClass1* fromListCl = qobject_cast<myClass1*>(myObjList.at(0));
class MyBaseTypedObject : public QObject { ... virtual int GetTypeId( void ) const = 0; };
switch (obj->GetTypeId()) { case OBJ_TYPE_1: ((MyObj1 *) obj)->DoSomething(); break; ...}