Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QCamera flash is not working properly



  • hi , when i try to take picture through QImageCapture with flash mode on ,the resulting captured image has pink effect on it ,what's causing it ?

        CaptureSession
        {
            id:mCaptureSession
            camera: Camera
            {
                id:mCamera
                flashMode:Camera.FlashOn
            }
            imageCapture: ImageCapture
            {
                id:mImageCapture
                onImagaSaved:
                {
                    imagePreview = ""
                    imagePreview="file:///"+"MfilePath";
                }
            }
            videoOutput: mVideoOutput
            
            function capture()
            {
                if(mImageCapture.readyForCapture && mCamera.isFlashReady())
                    mImageCapture.captureToFile("MfilePath")
            }
        }
        
        VideoOutput
        {
            id:mVideoOutput
            anchors.fill: parent
            Image 
            {
                id: imagePreview
                anchors.fill: parent
                source: ""
            }
        }
    
    

    platform:- android (sdk 30)
    Qt version :- 6.2
    see video


Log in to reply