Gui: support of QPrintSupport module in PythonWrapper

This commit is contained in:
wmayer
2022-12-22 16:18:18 +01:00
parent 1e02e70d38
commit caa7eb36f9
2 changed files with 47 additions and 0 deletions

View File

@@ -34,6 +34,7 @@ class QIcon;
class QGraphicsObject;
class QGraphicsItem;
class QObject;
class QPrinter;
class QWidget;
QT_END_NAMESPACE
@@ -46,6 +47,7 @@ public:
bool loadCoreModule();
bool loadGuiModule();
bool loadWidgetsModule();
bool loadPrintSupportModule();
bool loadUiToolsModule();
bool toCString(const Py::Object&, std::string&);
@@ -53,6 +55,8 @@ public:
QGraphicsItem* toQGraphicsItem(PyObject* ptr);
QGraphicsObject* toQGraphicsObject(PyObject* pyPtr);
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;