Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. aspect ratio for qvideowidget
Forum Updated to NodeBB v4.3 + New Features

aspect ratio for qvideowidget

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 3 Posters 705 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.
  • K Offline
    K Offline
    kumar405
    wrote on last edited by
    #1

    hi team,
    I'm using qt5.9 opensource for imx6 with embedded Linux. I'm playing/streaming one video using Qmediaplayer and QVideo widget.here is the sample code.
    https://doc.qt.io/qt-5/videooverview.html
    I'm able to play/stream the video but, if I use "setAspectRatioMode(Qt::IgnoreAspectRatio)" for video scaling,function is not reflecting in my Linux side.
    Please note: the same setup is working with ubuntu.

    T 1 Reply Last reply
    1
    • K kumar405

      hi team,
      I'm using qt5.9 opensource for imx6 with embedded Linux. I'm playing/streaming one video using Qmediaplayer and QVideo widget.here is the sample code.
      https://doc.qt.io/qt-5/videooverview.html
      I'm able to play/stream the video but, if I use "setAspectRatioMode(Qt::IgnoreAspectRatio)" for video scaling,function is not reflecting in my Linux side.
      Please note: the same setup is working with ubuntu.

      T Offline
      T Offline
      temleog
      wrote on last edited by
      #2

      @kumar405 did you ever find a solution for this issue? I'm struggling with the exact same problem, where my video isn't scaling regardless of the fact I've also set the aspect ratio mode to IgnoreAspectRatio,

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Sikander Rafiq
        wrote on last edited by
        #3

        You can try this:
        setAspectRatioMode(Qt::AspectRatioMode::KeepAspectRatioByExpanding);

        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