[Interest] metaObject from class name

Mandeep Sandhu mandeepsandhu.chd at gmail.com
Fri Feb 14 12:24:44 CET 2014

On Fri, Feb 14, 2014 at 4:20 PM, Graham Labdon <
Graham.Labdon at avalonsciences.com> wrote:

> 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?

I don't think that that's possible. You could store the static meta object
in hashmap with the class name as the key, but then this would require you
to know all possible class names before-hand.


> Many thanks
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140214/2665adfe/attachment.html>

More information about the Interest mailing list