How to get rect of inner item of QGraphicsProxyWidget
Unsolved
General and Desktop
-
wrote on 23 Apr 2018, 13:50 last edited by Zee_07
I have global mouse position which is coming from QMainWindow. Inside mainwindow QgraphicsView is present which contains QGraphicsProxyWidget and again this QGraphicsProxyWidget has too many other QGraphicsItems in it. How can I get the rect of inner QGraphicsItem which lies inside QGraphicsProxyWidget when mouse cursor is on it? (consider view supports scaling).
Any suggestions or ideas?
-
Hi,
From the way you write it, you seem to have a QGraphicsView inside a QGraphicsProxyWidget, is that the case ?
-
wrote on 24 Apr 2018, 10:21 last edited by Zee_07
-
Hi
I was wondering if you could use
QRectF QGraphicsProxyWidget::subWidgetRect(const QWidget * widget) const
4/4