It's possible that you can do flood fill by composing all relevant items in the scene into QPainterPath. Otherwise, if you want to go through QImage, you can call QGraphicsScene::render() on a painter opened on QImage to render the scene there.