diff --git a/src/qrcode_scanner/QrCodeScanDialog.cpp b/src/qrcode_scanner/QrCodeScanDialog.cpp index 37d289c..1dd78b3 100644 --- a/src/qrcode_scanner/QrCodeScanDialog.cpp +++ b/src/qrcode_scanner/QrCodeScanDialog.cpp @@ -26,7 +26,11 @@ QrCodeScanDialog::QrCodeScanDialog(QWidget *parent) } for (const auto &camera : m_cameras) { +#ifdef Q_OS_WIN + ui->combo_camera->addItem(camera.description()); +#else ui->combo_camera->addItem(camera.deviceName()); +#endif } connect(ui->combo_camera, QOverload::of(&QComboBox::currentIndexChanged), this, &QrCodeScanDialog::onCameraSwitched);