use scene->setSceneRect(0, 0, image->width(), image->height());