you can use the function QPixmap::loadfromdata(),
using this function you can directly convert the raw data to QPixmap,
so the processing of converting the raw data to QImage and QImage to QPixmap will be reduced,
try it ....