QPainter.drawPoint
uses the current pen, not the brush. Call painter.setPen
before each point.
But you would be much better off storing the pixels in a QImage
. Qt already has support for reading BMP files so there's no need to implement that yourself unless you have a good reason to.