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. ManualFocus on iPad (6th gen)
QtWS25 Last Chance

ManualFocus on iPad (6th gen)

Scheduled Pinned Locked Moved Solved Mobile and Embedded
4 Posts 3 Posters 526 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.
  • E Offline
    E Offline
    errollgarner
    wrote on last edited by
    #1

    Hi all,

    I'm building an iOS camera app ( which I'm testing on the iPad 6th gen ( early 2018 ) ) and I'm confused by the output I get from QCameraFocus. I am wondering if it could possibly be a bug, but I don't really know how to confirm if it is indeed one, or if it's a limitation of the camera or a limitation of something else. I use this bit of code to get the QCameraFocus from the camera and check it's available focus modes:

                QCameraFocus * qcf = camera->getCamera()->focus();
                qInfo() << qcf->isFocusModeSupported(QCameraFocus::ManualFocus);
                qInfo() << qcf->isFocusModeSupported(QCameraFocus::HyperfocalFocus);
                qInfo() << qcf->isFocusModeSupported(QCameraFocus::InfinityFocus);
                qInfo() << qcf->isFocusModeSupported(QCameraFocus::AutoFocus);
                qInfo() << qcf->isFocusModeSupported(QCameraFocus::ContinuousFocus);
                qInfo() << qcf->isFocusModeSupported(QCameraFocus::MacroFocus);
    

    It returns true only for AutoFocus and ContinuousFocus, everything else returns false. Now, the reason why I think there might be a problem here is because if I use the default camera app on the iPad, I am able to set the focus manually to any point on the image ( this would be manual focus I suppose ). Therefore, since it can be done in another app, I can safely assume that it is supported by the camera, right? So, why does it show as not supported in Qt?

    Any thoughts on the issue would be appreciated.

    Cheers,

    E.

    jsulmJ 1 Reply Last reply
    0
    • E errollgarner

      Hi all,

      I'm building an iOS camera app ( which I'm testing on the iPad 6th gen ( early 2018 ) ) and I'm confused by the output I get from QCameraFocus. I am wondering if it could possibly be a bug, but I don't really know how to confirm if it is indeed one, or if it's a limitation of the camera or a limitation of something else. I use this bit of code to get the QCameraFocus from the camera and check it's available focus modes:

                  QCameraFocus * qcf = camera->getCamera()->focus();
                  qInfo() << qcf->isFocusModeSupported(QCameraFocus::ManualFocus);
                  qInfo() << qcf->isFocusModeSupported(QCameraFocus::HyperfocalFocus);
                  qInfo() << qcf->isFocusModeSupported(QCameraFocus::InfinityFocus);
                  qInfo() << qcf->isFocusModeSupported(QCameraFocus::AutoFocus);
                  qInfo() << qcf->isFocusModeSupported(QCameraFocus::ContinuousFocus);
                  qInfo() << qcf->isFocusModeSupported(QCameraFocus::MacroFocus);
      

      It returns true only for AutoFocus and ContinuousFocus, everything else returns false. Now, the reason why I think there might be a problem here is because if I use the default camera app on the iPad, I am able to set the focus manually to any point on the image ( this would be manual focus I suppose ). Therefore, since it can be done in another app, I can safely assume that it is supported by the camera, right? So, why does it show as not supported in Qt?

      Any thoughts on the issue would be appreciated.

      Cheers,

      E.

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

      @errollgarner Could be a bug. You can search in Qt bug tracker and file a bug if it is not already filed.

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

      1 Reply Last reply
      0
      • E Offline
        E Offline
        errollgarner
        wrote on last edited by errollgarner
        #3

        I should have done that first. It is indeed a reported bug. It has been around since Qt 5.7 apparently. (https://bugreports.qt.io/browse/QTBUG-55613)

        ekkescornerE 1 Reply Last reply
        0
        • E errollgarner

          I should have done that first. It is indeed a reported bug. It has been around since Qt 5.7 apparently. (https://bugreports.qt.io/browse/QTBUG-55613)

          ekkescornerE Offline
          ekkescornerE Offline
          ekkescorner
          Qt Champions 2016
          wrote on last edited by
          #4

          @errollgarner please add the link to the bug issue here and mark as solved.

          ekke ... Qt Champion 2016 | 2024 ... mobile business apps
          5.15 --> 6.8 https://t1p.de/ekkeChecklist
          QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

          1 Reply Last reply
          1

          • Login

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