BUG in QCameraViewfinder
Unsolved
Mobile and Embedded
-
Hello .. I'm trying to display the image from the Android cell phone camera and later capture a photo.
My problem is in displaying the camera image in QCameraViewfinder. Simply the camera image does not appear. See below:
I'm using a very basic code just to test this problem. See my code:
int main( int argc, char ** argv ) { QApplication a( argc, argv ); QWidget *wid = new QWidget; QCamera *cam = new QCamera(); QCameraViewfinder *vf = new QCameraViewfinder(wid); cam->setViewfinder(vf); vf->showMaximized(); wid->showMaximized(); cam->start(); return a.exec(); }
Detail that I can take the picture and save it in QImage. It just doesn't display the camera image at runtime.
I also noticed that a QT example does not display the camera image.
I use QT 5.14.2
QT bug or am I doing something wrong?
-
@RenanHm said in BUG in QCameraViewfinder:
I use QT 5.14.2
You should try with a more recent Qt version. Android is a fast moving target and older Qt versions may fail on recent Android versions.