#include <WidgetFactory.h>

Public Member Functions

Py::Object fromQIcon (const QIcon *)
 
Py::Object fromQWidget (QWidget *, const char *className=0)
 
const char * getWrapperName (QObject *) const
 
bool loadCoreModule ()
 
bool loadGuiModule ()
 
bool loadWidgetsModule ()
 
 PythonWrapper ()
 
bool toCString (const Py::Object &, std::string &)
 
QGraphicsItem * toQGraphicsItem (PyObject *ptr)
 
QIcon * toQIcon (PyObject *pyobj)
 
QObjecttoQObject (const Py::Object &)
 

Static Public Member Functions

static void createChildrenNameAttributes (PyObject *root, QObject *object)
 
static void setParent (PyObject *pyWdg, QObject *parent)
 

Constructor & Destructor Documentation

◆ PythonWrapper()

PythonWrapper::PythonWrapper ( )

Member Function Documentation

◆ createChildrenNameAttributes()

void PythonWrapper::createChildrenNameAttributes ( PyObject root,
QObject object 
)
static

References Gui::qt_identifyType().

Referenced by Gui::UiLoaderPy::load().

◆ fromQIcon()

Py::Object PythonWrapper::fromQIcon ( const QIcon *  icon)

Create a Python wrapper for the icon. The icon must be created on the heap and the Python wrapper takes ownership of it.

Referenced by Gui::ViewProviderPy::getIcon(), and Gui::Application::sGetIcon().

◆ fromQWidget()

◆ getWrapperName()

const char * PythonWrapper::getWrapperName ( QObject obj) const

◆ loadCoreModule()

◆ loadGuiModule()

◆ loadWidgetsModule()

◆ setParent()

void PythonWrapper::setParent ( PyObject pyWdg,
QObject parent 
)
static

Referenced by Gui::UiLoaderPy::load().

◆ toCString()

bool PythonWrapper::toCString ( const Py::Object &  pyobject,
std::string &  str 
)

Referenced by Gui::UiLoaderPy::load().

◆ toQGraphicsItem()

QGraphicsItem * PythonWrapper::toQGraphicsItem ( PyObject ptr)

◆ toQIcon()

QIcon * PythonWrapper::toQIcon ( PyObject pyobj)

◆ toQObject()


The documentation for this class was generated from the following files:
  • src/Gui/WidgetFactory.h
  • src/Gui/WidgetFactory.cpp