From bdedd50862d14a9096d0ed0625bbed8b7529abcb Mon Sep 17 00:00:00 2001 From: Eduardo <30321688+EddyTheCo@users.noreply.github.com> Date: Sun, 7 Apr 2024 09:04:34 +0200 Subject: [PATCH] do not choose camera format --- QtQrDec/Qrimagedecoder.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/QtQrDec/Qrimagedecoder.cpp b/QtQrDec/Qrimagedecoder.cpp index e514591..3efcfb4 100644 --- a/QtQrDec/Qrimagedecoder.cpp +++ b/QtQrDec/Qrimagedecoder.cpp @@ -89,16 +89,6 @@ void QRImageDecoder::getCamera(void) } } m_camera=new QCamera(best,this); - auto bvF=best.videoFormats().at(0); - for (const QCameraFormat &format : best.videoFormats()) - { - if(abs(format.resolution().width()*1.0-format.resolution().height())setCameraFormat(bvF); - } }