I\'ve been pulling my hair out with this one for hours. There\'s a thread here about it, but nothing seems to be working. QGraphicsView::rect() will return the width and hei
It sounds like what you want is the scene rectangle. The ::rect() method is inherited from QWidget. See:
::rect()
QWidget
http://doc.qt.io/qt-5/qgraphicsview.html#sceneRect-prop