I think you'll get either a QPixmap or QImage here, right? The char pointer would then be irrelevant.