views:

187

answers:

1

Is there a way to find the QMetaObject instance of a class, given the class name? what I like to do is to load objects from disk, but for this to happen, I need a way to retrieve a QMetaObject instance using the name of a class, in order to use the QMetaObject to create an instance.

A: 

You can store the MetaClass instances you will need in a Hash or Map, and then retrieve them via whatever name you stored them under

Harald Scheirich