I'm not 10% udnerstanding your intentions, but this might help. You can create
any QObject through QMetaObject by the class name, then get the meta object for
the created object. Look at QMetaObject::newInstance(..)
You need a "class factory" design pattern.
Here is an example:
http://www.ics.com/designpatterns/solutions/abstractfactory.html#abstractfactoryh
________________________________
From: Graham Labdon <graham.lab...@avalonsciences.com>
To: "interest@qt-project.org" <interest@qt-project.org>
Sent: Friday, February 14, 2014 5:50 AM
Subject: [Interest] metaObject from class name
Hi
In my application I have a class name as a string
This is the name of a class derived from QObject.
Now what I would like to do is the get metaObject for this class from the string
Is this at all possible?
Many thanks
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest