QWidget* FormModule::createWidget(QWidget* parent, const QString& className, const QString& name) { UiLoader loader; QWidget* widget = loader.createWidget(className, parent, name); if( parent && parent->layout() ) parent->layout()->addWidget(widget); return widget; }
QWidget* FormModule::createWidget(const QString& className) { UiLoader loader; QWidget* widget = loader.createWidget(className); return widget; }