QImage image(100, 100, QImage::Format_RGB32); image.fill(Qt::red);
QImage image("filename.jpg"); image.fill(Qt::white);This code loads an image from a file named "filename.jpg" using the QImage constructor. The `fill()` function is then used to overwrite the original image with a new color, in this case white. Package Library: Qt Framework.