Hello all,

I come from a Java background where you can, given just a String that represents a class name, create an instance of that class. Something like:

Qt Code:
  1. Class c = Class.forName("com.foo.MyClass");
  2. MyObject o = c.newInstance();
To copy to clipboard, switch view to plain text mode 

Is there a similar mechanism provided by Qt? Or C++ in general?

Any help is greatly appreciated.

Thanks,
Derek