[Qt-interest] How to create object instance knowing only its class name in a QString?

Konstantin Tokarev annulen at yandex.ru
Mon Jan 30 14:10:05 CET 2012


30.01.2012, 16:57, frares at gmail.com:
> Hi, all.
>
> How do I instantiate an object knowing its class name in a QString and that all similar classes are derived from a "facade" super class?

You need to use "factory" pattern.

-- 
Regards,
Konstantin



More information about the Qt-interest-old mailing list