Question in QGraphicsView
Hi All,
i want to set a bachground image to my GraphicsView Control, so i added this line
Code:
MyViwer
->setBackgroundBrush
(QImage("C:\\pix.jpg"));
The Problem is that the pic didn't fit the background on the control after resizing the control.
for example, if i maximized the form, the pic will appear twice in the control.
How can i make the Pic fit the background without duplications ??
Thanks
Re: Question in QGraphicsView
Reimplement drawBackground() and draw the image yourself after scaling it.