Qt 6.11 is out! See what's new in the release
blog
Get notification of QGraphicsView resizing
General and Desktop
3
Posts
2
Posters
1.4k
Views
1
Watching
-
Hi,
Apologies if this is a really trivial problem, but I have been unable to figure out how to detect when a QGraphicsView is resized. I need to pass this information to a QGraphicsWidget contained in the QGraphicsScene displayed by the QGraphicsView.
Any pointers appreciated!
-Josh
-
QAbstractScrollArea is ancestor of QGraphicsView, so you can reimplement "QAbstractScrollArea::resizeEvent":http://qt-project.org/doc/qt-4.8/qabstractscrollarea.html#resizeEvent