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
Nevermind. Came up with this, which seems to work.
QRectF EditorView::visibleRect() { QPointF tl(horizontalScrollBar()->value(), verticalScrollBar()->value()); QPointF br = tl + viewport()->rect().bottomRight(); QMatrix mat = matrix().inverted(); return mat.mapRect(QRectF(tl,br)); }