Qt-interest Archive, March 2007
Using QGrapicsView and QGraphicScene
Message 1 in thread
Hi everybody,
I have been using Qt for a while, but I never used the graphics
abilities before. I have just started a new application. The idea is
to have a map, and graphical items that can be moved around on the
map. It seems that QGraphicsScene and QGraphicsItem combined with
QGraphicsView is the appropriate way to do this. I would like to set
the background to the map. The map should cover the whole viewport,
and scale when the window is resized. I have used the method
graphicsView->setBackgroundBrush(QPixmap("./images/map.gif"));
This however, keeps the map size fixed, and tiles the image to fill
the remaining space. What am I missing here, in order to get the
desired effect?
Thanks
Marius
--
[ signature omitted ]