Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Shape and Canvas Performance
Qt 6.11 is out! See what's new in the release blog

Shape and Canvas Performance

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 996 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JW3153
    wrote on last edited by
    #1

    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
    or
    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.

    J.HilkJ 1 Reply Last reply
    0
    • J JW3153

      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
      or
      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.

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      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

      QQuickPaintedItem

      :)


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved