diff --git a/graphicsscene.cpp b/graphicsscene.cpp index 2569b5c..321d0d9 100644 --- a/graphicsscene.cpp +++ b/graphicsscene.cpp @@ -24,7 +24,9 @@ GraphicsScene::~GraphicsScene() void GraphicsScene::showImage(const QPixmap &pixmap) { this->clear(); - m_theThing = this->addPixmap(pixmap); + QGraphicsPixmapItem * pixmapItem = this->addPixmap(pixmap); + pixmapItem->setShapeMode(QGraphicsPixmapItem::BoundingRectShape); + m_theThing = pixmapItem; this->setSceneRect(m_theThing->boundingRect()); }