How can i put an image on a scenerect? The image wouldn't be repeated to cover the entire canvas, but, if smaller, the image would be enlarged.
I use
setBackgroundBrush(QImage(fileImage));
but the image, if smaller, is repeated.........
How can i put an image on a scenerect? The image wouldn't be repeated to cover the entire canvas, but, if smaller, the image would be enlarged.
I use
setBackgroundBrush(QImage(fileImage));
but the image, if smaller, is repeated.........
Reimplement QGraphicsScene::drawBackground().
in which manner?
Draw the image as you want it there.
Bookmarks