I am creating a QGraphicsView, which shows a QGraphicsScene.
I set the background of the scene to a QImage bitmap, with:
scene()->setBackgroundBrush(myQImage);
I would like this image to tile relative to an offset, as I can do with:
painter.drawTiledPixmap(this->rect(), QPixmap::fromImage(myQImage), bgOffset);
Is there a way to do this, or should I just ignore the background brush ability of QGraphicsScene, and do it with a painter? This loses me caching of what might be a large background, though, and would royally mess up the scrollbars, so I'd rather not.
[Edit, context: I have a what is essentially a sprite-based character-designer (or avatar designer). I want people to be able to display a tiling background of their choosing, but I cannot restrict the dimensions of the background, and the central tile of the background must be displayed at a user-defined offset relative to the sprite they are designing. This background can be anything from a simple grid background (for pixel alignment), to a screenshot of an ingame map (character must be alignable to stand in the center of their desired map square), to a picture of another character's avatar for them to compare to or align against in a pixel-perfect way, and so on...]