Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved Qt::TransformationMode with QGraphicsVideoItem?

    General and Desktop
    2
    3
    99
    Loading More Posts
    • 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
      davecotter last edited by davecotter

      I'm manually rendering video frames for my QGraphicsVideoItem, and when presented, they seem to always scale up using Qt::FastTransformation scaling. see:

      sharp.png

      I know i can call setTransformationMode() on a QGraphicsPixmapItem, but I'm wondering if there is some way to do something similar for a QGraphicsVideoItem ?
      So it looks more like this:

      fuzzy.png

      1. i know it's not a dramatic improvement, but i'd like to try it if i can
      2. no i can not change the size / pixel density of the original image
      3. no, i can't switch to using QGraphicsPixmapItem
      4. pre-upscale is a different topic than this one, let's stick to this topic

      The answer may just be "sorry, there's no way to set the transform mode on the upscale that QGraphiscScene provides for QGraphicsVideoItem", and if so, I'd just like to know that so I don't waste my time.

      thanks!

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        AFAIK, it's not something you can change.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • SGaist
          SGaist Lifetime Qt Champion last edited by

          Hi,

          AFAIK, it's not something you can change.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply Reply Quote 0
          • D
            davecotter last edited by

            😭😭😭😭😭😭😭😭

            1 Reply Last reply Reply Quote 0
            • First post
              Last post