Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to display camera preview full screen and maintain aspect ratio



  • 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,


  • Lifetime Qt Champion

    Hi,

    Please don't post the same question twice

    Closing this one

    "Duplicate":http://qt-project.org/forums/viewthread/41981/


Log in to reply