Qt World Summit: Register Today!

How Efficient is it to use QWidgets in QGraphicsScene via the QGraphicsProxyWidget Functionality?

  • From what I understand QGraphicsScene is designed to be able to draw 1000's of items on a 2D canvas that can be animated and interacted with.

    The way in which you can incorporate a say a "panel" of QWidgets, which has a layout e.g box, into the QGraphicsScene is via the QGraphicsProxyWidget functionality.

    How efficient is this method? This is a lot of extra overhead by the fact you are adding QWidgets into the scene in this way?

  • Qt Champions 2017

    Yes, It is. You need to use adding the QWidgets to GraphicsScene only in unavoidable cases.

Log in to reply