Changing camera orientation in Qt 6.4.3
Unsolved
General and Desktop
-
When i start camera in QVideoWidget, orientation of the camera always have landscape orientation, and viewfinder have wrong aspect ratio. How to set camera orientation to portrait?
This is my code:camera = new QCamera(QCameraDevice::BackFace); captureSession.setCamera(camera); captureSession.setVideoOutput(ui->widget); ui->widget->show(); camera->start();