You can pass the data to QImage, provided you first set it to the data format corresponding the one from the other library. QImage::bits() returns a pointer to the beginning of image data that you can use to fill it with your own data.