QPainter::fillRect() maybe? But... hmm... why would you want to do that? Are you using QPainter outside of paint event?