How can I rotate QCameraViewFinder to 90 degree
Solved
General and Desktop
-
I'm using USB camera,but the orientation is not what I'm wanted,it's horizontal,I need it be vertical.
So I turn the USB camera to 90 degree,but the video stream was follow the camera to 90 degree.
Then I need rotate the QCameraViewFinder to 90 degree to fix it.
But I can't find a way to do it.
How can I do it?I don't need the way of use QGraphicsView,cause it have something wrong in TabWidget,I have tried it.
This is the current videofinder:
-
Hi and welcome to devnet,
I am not sure there's a direct way to do that within Qt.
One possible solution could be to create your own QAbstractVideoSurface and do the conversion there.
See also the Camera Overview in Qt's documentation.