Nominate our 2022 Qt Champions!

webcam on qt

  • Hello !

    I am trying to display what my webcam views on QT. I am a beginner in programmation. I have tried many things, I have look at the Qt examples and the documentation but I didn't succeed to make it work. I precise what I want : I don't want to do screenshots or video capture, I just want to display the view of my webcam in a widget. I work on QT 5 and on Windows 7. If anyone could give me the most basic code to make it work it would be great.

    Thank you very much for your help !

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    You should be able to achieve that by QCamera + QCameraViewFinder. QCameraViewFinder should show you the current content of the camera.

Log in to reply