diff --git a/generator/typesystem_gui.xml b/generator/typesystem_gui.xml index cf4a8f9..414178b 100644 --- a/generator/typesystem_gui.xml +++ b/generator/typesystem_gui.xml @@ -1253,7 +1253,14 @@ - + +QImage* new_QImage( const uchar * data, int width, int height, QImage::Format format ) +{ + QImage* image = new QImage(width, height, format); + memcpy(image->bits(), data, image->byteCount()); + return image; +} +