It depends how do you want that background to behave. Should it repeat itself or should it scale to the size of the scene, etc. You might need to make a for loop that draws the pixmap multiple times to fill the "rect".
It depends how do you want that background to behave. Should it repeat itself or should it scale to the size of the scene, etc. You might need to make a for loop that draws the pixmap multiple times to fill the "rect".
I only have one big pixmap that should fill up the entire background. The scene has the same size as the pixmap.
So just draw the pixmap.
Qt Code:
painter->drawPixmap(0,0, pixmap);To copy to clipboard, switch view to plain text mode
Bookmarks