Skip to content
Snippets Groups Projects

QDS-11412 Implement built-in QR code reader

Merged Burak Hançerli requested to merge QDS-11412/built-in-qr-code-reader into master
2 files
+ 10
9
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 0
9
@@ -112,15 +112,6 @@ void Backend::updateInBackground(const bool &enabled)
@@ -112,15 +112,6 @@ void Backend::updateInBackground(const bool &enabled)
void Backend::scanQrCode()
void Backend::scanQrCode()
{
{
// camera settings
// for (const QCameraFormat &fmt : QMediaDevices::videoInputs().at(0).videoFormats()) {
// qDebug() << "======================";
// qDebug() << "max framerate:" << fmt.maxFrameRate();
// qDebug() << "min framerate:" << fmt.minFrameRate();
// qDebug() << "pix fmt:" << fmt.pixelFormat();
// qDebug() << "res:" << fmt.resolution();
// }
m_captureSession.reset(new QMediaCaptureSession(this));
m_captureSession.reset(new QMediaCaptureSession(this));
m_captureSession->setCamera(new QCamera(this));
m_captureSession->setCamera(new QCamera(this));
m_captureSession->setVideoOutput(new CustomVideoWidget);
m_captureSession->setVideoOutput(new CustomVideoWidget);
Loading