fix: wrong scene rect will be set for :gif:
This commit is contained in:
parent
31add38e48
commit
096ff5170b
|
@ -54,6 +54,7 @@ void GraphicsScene::showGif(const QString &filepath)
|
|||
label->setMovie(movie);
|
||||
this->addWidget(label);
|
||||
movie->start();
|
||||
m_theThing = this->addRect(QRect(QPoint(0, 0), movie->scaledSize()));
|
||||
m_theThing = this->addRect(QRect(QPoint(0, 0), label->sizeHint()),
|
||||
QPen(Qt::transparent));
|
||||
this->setSceneRect(m_theThing->boundingRect());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user