QGraphicsView
We already said that you shouldn't use this framework in modern Qt applications, but what if you have to support it in some legacy systems?
One of the USPs of QGraphicsView was that it supported multiple views of the same scene. However, it didn't really strike a chord with the users and resulted in a complicated code base, which proved not to be suitable for optimizations! If you care for performance, you could consider migrating to QML, as even with OpenGL backend, the performance of QGraphicsView is expected to be worse than those of QML.
If you are nonetheless determined to stay with QGraphicsView, be aware that the convenient QGraphicsProxyWidget class, which can embed a straight Widget instance in the graphics view, is ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access