Answer the question
In order to leave comments, you need to log in
How to remove background offset?
There is an image of a background, the size of which matches the size of the window, it is necessary that it be centered, but for some reason it is drawn with a shift to the left and up by half its own length. That is, instead of getting up in size, the window is filled with four copies of it with an offset. How to fix it?
QGraphicsScene scene;
QGraphicsView view(&scene);
view->setBackgroundBrush(QPixmap(":/images/bg.jpg"));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question