Gui::PythonWrapper Class Reference

#include <PythonWrapper.h>

Public Member Functions

Py::Object fromQDir (const QDir &)
 
Py::Object fromQIcon (const QIcon *)
 
Py::Object fromQObject (QObject *, const char *className=nullptr)
 
Py::Object fromQWidget (QWidget *, const char *className=nullptr)
 
const char * getWrapperName (QObject *) const
 
bool loadCoreModule ()
 
bool loadGuiModule ()
 
bool loadUiToolsModule ()
 
bool loadWidgetsModule ()
 
 PythonWrapper ()
 
bool toCString (const Py::Object &, std::string &)
 
QDir * toQDir (PyObject *pyobj)
 
QGraphicsItem * toQGraphicsItem (PyObject *ptr)
 
QGraphicsObjecttoQGraphicsObject (PyObject *pyPtr)
 
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

◆ fromQDir()

Py::Object PythonWrapper::fromQDir ( const QDir &  dir)

◆ 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::Application::sGetIcon().

◆ fromQObject()

Py::Object PythonWrapper::fromQObject ( QObject object,
const char *  className = nullptr 
)

◆ fromQWidget()

◆ getWrapperName()

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

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

◆ loadCoreModule()

◆ loadGuiModule()

◆ loadUiToolsModule()

bool PythonWrapper::loadUiToolsModule ( )

◆ 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().

◆ toQDir()

QDir * PythonWrapper::toQDir ( PyObject pyobj)

◆ toQGraphicsItem()

QGraphicsItem * PythonWrapper::toQGraphicsItem ( PyObject ptr)

◆ toQGraphicsObject()

QGraphicsObject * PythonWrapper::toQGraphicsObject ( PyObject pyPtr)

◆ toQIcon()

QIcon * PythonWrapper::toQIcon ( PyObject pyobj)

◆ toQObject()


The documentation for this class was generated from the following files: