Caius Aérobus
23rd November 2008, 11:56
Hello,
I create a QBrush with a TexturePattern and set a pixmap like this:
QPixmap pm("eye.png");
this->brush = QBrush(pm);
QRect r(100, 100, pm.width(), pm.height());
painter.fillRect(r, this->brush);
The results is below, ie the image left corner is in the (about) middle of the QRect, so what did I miss?
I create a QBrush with a TexturePattern and set a pixmap like this:
QPixmap pm("eye.png");
this->brush = QBrush(pm);
QRect r(100, 100, pm.width(), pm.height());
painter.fillRect(r, this->brush);
The results is below, ie the image left corner is in the (about) middle of the QRect, so what did I miss?