Gui: support of wrapping QImage

This commit is contained in:
wmayer
2023-08-03 00:04:45 +02:00
committed by wwmayer
parent 205c0e7345
commit b202eb2f6b
2 changed files with 35 additions and 1 deletions

View File

@@ -31,6 +31,7 @@
QT_BEGIN_NAMESPACE
class QDir;
class QIcon;
class QImage;
class QGraphicsObject;
class QGraphicsItem;
class QObject;
@@ -61,6 +62,9 @@ public:
Py::Object fromQObject(QObject*, const char* className=nullptr);
Py::Object fromQWidget(QWidget*, const char* className=nullptr);
const char* getWrapperName(QObject*) const;
Py::Object fromQImage(const QImage&);
QImage *toQImage(PyObject *pyobj);
/*!
Create a Python wrapper for the icon. The icon must be created on the heap
and the Python wrapper takes ownership of it.