Since you have read the documentation of QImage, you must have noticed a whole section that explains how to change the color of a pixel. All you need to do is do that in a loop that iterates over the pixels and the QList.