The UiLoader class provides the abitlity to use the widget factory framework of FreeCAD within the framework provided by Qt. More...
#include <WidgetFactory.h>
Public Member Functions | |
QWidget * | createWidget (const QString &className, QWidget *parent=0, const QString &name=QString()) |
Creates a widget of the type className withe the parent parent. | |
UiLoader (QObject *parent=0) | |
virtual | ~UiLoader () |
The UiLoader class provides the abitlity to use the widget factory framework of FreeCAD within the framework provided by Qt.
This class extends QUiLoader by the creation of FreeCAD specific widgets.
Definition at line 77 of file WidgetFactory.h.
UiLoader::UiLoader | ( | QObject * | parent = 0 |
) |
Definition at line 170 of file WidgetFactory.cpp.
UiLoader::~UiLoader | ( | ) | [virtual] |
Definition at line 179 of file WidgetFactory.cpp.
QWidget * UiLoader::createWidget | ( | const QString & | className, | |
QWidget * | parent = 0 , |
|||
const QString & | name = QString() | |||
) |
Creates a widget of the type className withe the parent parent.
Fore more details see the documentation to QWidgetFactory.
Definition at line 183 of file WidgetFactory.cpp.
References Base::Factory::CanProduce(), Gui::WidgetFactoryInst::createWidget(), RobotExample::w, and Gui::WidgetFactory().