Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QCamera bug when Macbook lid is closed
Forum Updated to NodeBB v4.3 + New Features

QCamera bug when Macbook lid is closed

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 389 Views 2 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.
  • F Offline
    F Offline
    Fei Teng
    wrote on last edited by Fei Teng
    #1

    I might have experienced a QCamera bug when using Macbook's built-in camera:

    When the laptop is open - all works. The camera object has ActiveState and ActiveStatus for the state and status respectively.

    When I close the lid but connect to an external screen - the camera doesn't start and doesn't capture anything, but QCamera still detects ActiveState and ActiveStatus .

    When I deny camera access from the setting - the same thing happens.

    Is there any way to make it tell the difference between the normal case and when camera indeed failed to start due to closed lid or denied access?

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

      Hi and welcome to devnet,

      Which version of Qt are you using ?
      On which version of macOS ?
      Which laptop model are you using ?

      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
      • F Offline
        F Offline
        Fei Teng
        wrote on last edited by Fei Teng
        #3

        Thanks for checking!

        I'm using Qt 5.14.2.
        macOS Monterey 12.1, but the problem has been there for long time.
        Macbook Pro 16" 2019

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

          Can you check with a more recent version of Qt ?
          For Qt 6, the multimedia module has seen a big rewrite so something may have changed.

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

          F 1 Reply Last reply
          0
          • SGaistS SGaist

            Can you check with a more recent version of Qt ?
            For Qt 6, the multimedia module has seen a big rewrite so something may have changed.

            F Offline
            F Offline
            Fei Teng
            wrote on last edited by
            #5

            @SGaist thanks, I'll let you know

            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