Qt Forum

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

    How to display camera preview full screen and maintain aspect raion

    QML and Qt Quick
    1
    1
    528
    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.
    • E
      econtech last edited by

      Hi,

      I am used QAbstractVideoSurface for getting the camera buffer. My camera resolution is 640*480.
      The window is displayed the preview in center part of the screen.

      How can I change the preview display area to full screen and maintain the aspect radio.

      I am created camera widget and loaded in the qml file.

      I tried the calculation of aspect ratio. But the display area is not changed. I struck this for long time.

      Its very helpful somebody give the solution for this problem.

      Thanks,

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