[Gui]overload toQGraphicsItem, toQGraphicsObject for PyObject

This commit is contained in:
wandererfan
2022-12-25 19:43:49 -05:00
committed by WandererFan
parent 74561536af
commit c55a9256e1
2 changed files with 13 additions and 1 deletions

View File

@@ -53,10 +53,11 @@ public:
bool toCString(const Py::Object&, std::string&);
QObject* toQObject(const Py::Object&);
QGraphicsItem* toQGraphicsItem(PyObject* ptr);
QGraphicsItem* toQGraphicsItem(const Py::Object& pyObject);
QGraphicsObject* toQGraphicsObject(PyObject* pyPtr);
QGraphicsObject* toQGraphicsObject(const Py::Object& pyObject);
Py::Object fromQPrinter(QPrinter*);
Py::Object fromQObject(QObject*, const char* className=nullptr);
Py::Object fromQWidget(QWidget*, const char* className=nullptr);
const char* getWrapperName(QObject*) const;