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. Camera focus not work
Forum Updated to NodeBB v4.3 + New Features

Camera focus not work

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
12 Posts 4 Posters 1.0k 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.
  • NickVN Offline
    NickVN Offline
    NickV
    wrote on last edited by
    #1

    Hi guys.
    I am trying to use camera from qml but focus not work. I called searchAndLock but nothing happens. I use Qt 5.9.6.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You have to give more details about your system and device.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • NickVN Offline
        NickVN Offline
        NickV
        wrote on last edited by
        #3

        I use a Huawei P9 lite.
        My system is android 8.
        I've tried the code that i mention before but focus still not work. It worked once but now i have again the same problem.

        M jsulmJ 2 Replies Last reply
        0
        • NickVN NickV

          I use a Huawei P9 lite.
          My system is android 8.
          I've tried the code that i mention before but focus still not work. It worked once but now i have again the same problem.

          M Offline
          M Offline
          mvuori
          wrote on last edited by
          #4

          That's not your code, but just something you call in your code. You should show your code

          1 Reply Last reply
          0
          • NickVN NickV

            I use a Huawei P9 lite.
            My system is android 8.
            I've tried the code that i mention before but focus still not work. It worked once but now i have again the same problem.

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

            @NickV Do you have to use such an old Qt version?

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

            1 Reply Last reply
            0
            • NickVN Offline
              NickVN Offline
              NickV
              wrote on last edited by NickV
              #6

              @jsulm
              I use Qt 5.9.6.
              As far as i know since qt 5.5 there is no such problem. Correct?

              jsulmJ 1 Reply Last reply
              0
              • NickVN NickV

                @jsulm
                I use Qt 5.9.6.
                As far as i know since qt 5.5 there is no such problem. Correct?

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

                @NickV said in Camera focus not work:

                As far as i know since qt 5.5 there is no such problem. Correct?

                I don't know. There could be bugs in older versions which were fixed in newer. That's why I suggest to test with current Qt version. Especially Android is changing quite fast, old Qt versions could have issues with newer Android versions.

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

                1 Reply Last reply
                0
                • NickVN Offline
                  NickVN Offline
                  NickV
                  wrote on last edited by
                  #8

                  @jsulm
                  In order to do that i have to build postgres driver for android for qt 5.13. But as i have mention to other post i have problem with that.

                  jsulmJ 1 Reply Last reply
                  0
                  • NickVN NickV

                    @jsulm
                    In order to do that i have to build postgres driver for android for qt 5.13. But as i have mention to other post i have problem with that.

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

                    @NickV You could create a small test app where you only try to use the camera...

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

                    1 Reply Last reply
                    0
                    • NickVN Offline
                      NickVN Offline
                      NickV
                      wrote on last edited by
                      #10

                      @jsulm
                      This is a little bit difficult right now. About the other post at least any suggestion in order to build postgres?

                      jsulmJ 1 Reply Last reply
                      0
                      • NickVN NickV

                        @jsulm
                        This is a little bit difficult right now. About the other post at least any suggestion in order to build postgres?

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

                        @NickV No, I never build it. And I'm wondering why you would need it on an Android device? Are you going to connect directly to postgres server from Android device? Over Internet or Intranet?

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

                        1 Reply Last reply
                        0
                        • NickVN Offline
                          NickVN Offline
                          NickV
                          wrote on last edited by
                          #12

                          @jsulm
                          Yes. My application is very old, but i need new Qt now. I can not change the whole application in order to use api calls right now. I know that this architecture is very painful and problematic but this is that i have for now.

                          1 Reply Last reply
                          0

                          • Login

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