Important: Please read the Qt Code of Conduct -

Shape and Canvas Performance

  • I am implementing some custom custom graphing components in our Qt application (QML) and I was wondering if anyone had advice on the most performant of the following two solutions:

    Using Shape components with corresponding ShapePath for drawing the relevant parts
    Using Canvas components with corresponding Path + onPaint for drawing relevant parts.

    The intention will be to have possibly 100's of these Canvas or Shape components on screen at once (dynamically added and removed as needed) and I from my reading I believe Shape might struggle with having many on screen at one time despite it being the "newer" solution (please correct if I am wrong)

    Any advise will be sincerely appreciated.

  • Moderators

    hi @JW3153

    I can't really recommend either, as I don't know enough about them. But I would like to add to the confusion and add a 3rd option



Log in to reply