Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Comparing QQuickPaintedItem with QQuickImageProvider

Comparing QQuickPaintedItem with QQuickImageProvider

Scheduled Pinned Locked Moved Solved Qt for Python
3 Posts 2 Posters 486 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.
  • E Offline
    E Offline
    Evko
    wrote on last edited by
    #1

    Hello PySide community:

    I tried to display the video stream from a camera in real-time with PySide6, and it worked well by implementing a subclass of QQuickImageProvider. However, someone mentioned that QQuickImageProvider is a bit complicated, QQuickPaintedItem could be a good alternative which may bring performance improvements, higher customizability, and the ability to implement more features.

    Since he was talking based on the context of C++, I've been searching the web for several days. Sadly, there weren't too many results related to implementing QQuickPaintedItem within a PySide/QML project, not to mentions comparison between them.

    So here is the quetion from a rookie: Is QQuickPaintedItem really a better option? How about the implement? Can you provide some examples?

    Thanks.

    1 Reply Last reply
    0
    • F Offline
      F Offline
      friedemannkleint
      wrote on last edited by
      #2

      For an example , see https://doc.qt.io/qtforpython-6/examples/example_quick_painteditem.html . About performance, I cannot really comment.

      E 1 Reply Last reply
      1
      • F friedemannkleint

        For an example , see https://doc.qt.io/qtforpython-6/examples/example_quick_painteditem.html . About performance, I cannot really comment.

        E Offline
        E Offline
        Evko
        wrote on last edited by
        #3

        @friedemannkleint Thank you for the reply! I found the same page but didn't pay much attention to it :( , AND it did work. The implement is quite simple. As for the comparision, I'm working on it.

        1 Reply Last reply
        0
        • E Evko has marked this topic as solved on

        • Login

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