Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.12.3
-
-
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.