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. Performance issue of QQuickPaintedItem

Performance issue of QQuickPaintedItem

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 3 Posters 3.8k Views 1 Watching
  • 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.
  • D Offline
    D Offline
    diro
    wrote on last edited by
    #1

    I am developing a custom QML extension by QQuickPaintedItem. The document said you have to call the update() function when the appearance is changed, so I call it every 33ms (I am making a video player component, but it also said the update() function "will trigger a repaint of the whole scene."
    So, if I create multiple video player components in the QML, it will cause lots of repainting, and it make the performance worse. Any suggesstion for me? thanks!

    1 Reply Last reply
    0
    • A Offline
      A Offline
      aabc
      wrote on last edited by
      #2

      What is QQuickPaintedItem ?

      1 Reply Last reply
      0
      • D Offline
        D Offline
        diro
        wrote on last edited by
        #3

        http://doc-snapshot.qt-project.org/5.0/qquickpainteditem.html
        The QQuickPaintedItem class provides a way to use the QPainter API in the QML Scene Graph.

        1 Reply Last reply
        0
        • L Offline
          L Offline
          lgeyer
          wrote on last edited by
          #4

          QtMultimediaKit (which is part of the QtMobility APIs) already offers a QML Video element. Maybe this is what you are looking for.

          1 Reply Last reply
          0
          • D Offline
            D Offline
            diro
            wrote on last edited by
            #5

            Thanks for your suggestion. I replace QQuickPaintedItem with QQuickItem and solve the performance issue now. And I found VideoOutput in QtMultimedia is a good solution, too.

            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