I find recently my Mi Max3 did not scan QR codes with scanner, scanning line is moving up and down, but no code. Distance to QR or way QR is presented had no effect, tested from paper and from PC screen.
On camera settings "Scan QR codes" is turned on.
Scanner app had access permissions enabled...