Details
-
Suggestion
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
4.6.0
-
None
Description
It's rather tricky to have a QGraphicsView that has an image as background that stays in a fixed position. This seems like it should be an easy thing to achieve.
Currently one has to do something like this:
void drawBackground(...)
{
const QTransform old = p->transform();
p->setTransform(QTransform());
p->drawPixmap(old.mapRect(r), d.backgroundPixmap, old.mapRect(r));
p->setTransform(old);
}