oopapidocs
2.0
|
ObjectFactory - a default AbstractFactory. More...
#include <objectfactory.h>
Public Member Functions | |
virtual QObject * | newObject (QString className, QObject *parent=0) |
ObjectFactory - a default AbstractFactory.
It knows how to create instances of some QObject-derived classes: Address and also can "spoof" classes it does not know about by setting dynamic properties.
It initializes constraints of the various Address-types before it creates the first instance.
Definition at line 31 of file objectfactory.h.
QObject * ObjectFactory::newObject | ( | QString | className, |
QObject * | parent = 0 |
||
) | [virtual] |
className | - the name of the class to create |
parent | the parent of the object. |
Implements AbstractFactory.
Definition at line 16 of file objectfactory.cpp.