saransiva_ps
28th September 2015, 07:30
I have created a view class derived from QGraphicsView and set the backgroundBrush as an image.
I want to translate the backgroundBrush. I have tried the following
// graphicsView derived from QGraphicsView
graphicsView->backgroundBrush().transform().translate(moveX, moveY);
But it is not transforming the background brush.
I want to translate the backgroundBrush. I have tried the following
// graphicsView derived from QGraphicsView
graphicsView->backgroundBrush().transform().translate(moveX, moveY);
But it is not transforming the background brush.