Answer the question
In order to leave comments, you need to log in
How to spawn a static BackGround in Qt?
I am currently using the QGraphicsView graphic class.
In order to fill the background I use:
view->setBackgroundBrush(QPixmap(":/images/bg.jpg"));
Answer the question
In order to leave comments, you need to log in
QGraphicsView* view= new QGraphicsView;
QPixmap img;
img.load("some_image");
view->setBackgroundBrush(img.scaled(*QSize*));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question