Gui: support of wrapping QImage
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user