Answer the question
In order to leave comments, you need to log in
Qt: Widget is not displayed on stage. how to fix?
there is a piece of code that sets QLabel to the stage
void MainWindow::setBackGround(QString path)
{
QPixmap pix(path);
pBackGround->setPixmap(pix);
pBackGround->resize(pix.size());
scene.setSceneRect(pix.rect());
scene.addWidget(pBackGround);
}
pBackGround = new QLabel;
Answer the question
In order to leave comments, you need to log in
where does path point to? In resources?
do you ship imageformats with the binary?
path points to a file on the file system.
it is possible more in detail about imageformats?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question