Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-76236

QCameraInfo::availableCameras() is not listing the used camera

    XMLWordPrintable

Details

    • Linux/X11
    • 8933a59719a5f0c33d47f202d220a566765ec6d4 (qt/qtmultimedia/5.12)

    Description

      Run the camera widget demo and add:

          QTimer* m_timer = new QTimer(this);
          connect(m_timer, &QTimer::timeout, [](){
          const auto cameras = QCameraInfo::availableCameras();
          if (cameras.isEmpty())
          {
          qWarning() << "no camera is available";
          }
          for (const auto& cam : cameras)
          {
          qDebug() << cam.deviceName();
          }
          });
          m_timer->start(100);
      

      to camera.cpp, Camera constructor.
      Once the picture from the camera is shown, the camera is not listed anymore. On windows it is listed.
      Either the documentation should mention this limitation on Linux or it should be fixed.

      Attachments

        For Gerrit Dashboard: QTBUG-76236
        # Subject Branch Project Status CR V

        Activity

          People

            valentyn.doroshchuk Valentyn Doroshchuk
            karimpinter Karim Pinter (Inactive)
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes