Is it possible to create a class object at run time by retrieving the name of the class stored in a string?
for example: I want to create an object of class QButton , for example
QString strClassName = "QButton"; QButton *pBtn = new strClassName();
I want to read the xml file of all the controls and instantiate them at runtime using this method.
c ++ qt qt4
mots_g
source share