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. Changing camera capture mode not working.

Changing camera capture mode not working.

Scheduled Pinned Locked Moved Solved Mobile and Embedded
2 Posts 2 Posters 331 Views 1 Watching
  • 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.
  • B Offline
    B Offline
    Bonty
    wrote on last edited by
    #1

    Hi,

    I want to capture image as well as video on button. But changing mode is not working. I initialise camera with video capture mode and on button click event I pass below to capture still image but not working no file is created.

    camera->setCaptureMode(QCamera::CaptureStillImage);
    imageCapture->capture();
    

    Please help!!

    jsulmJ 1 Reply Last reply
    0
    • B Bonty

      Hi,

      I want to capture image as well as video on button. But changing mode is not working. I initialise camera with video capture mode and on button click event I pass below to capture still image but not working no file is created.

      camera->setCaptureMode(QCamera::CaptureStillImage);
      imageCapture->capture();
      

      Please help!!

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by jsulm
      #2

      @Bonty Why don't you use https://doc.qt.io/qt-6/qimagecapture.html#captureToFile if you want to capture to a file?
      Else you have to store the captured image data to a file.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • B Bonty has marked this topic as solved on

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved