Using QPainter for displaying live camera output
I am just curious if we can use QPainter to display the live camera output. If so can anyone tell me how will be the implementation.
I already used it with QLabel like this :
cM2 = new QCamera(this); cV2 = new QCameraViewfinder(this); cM2->setViewfinder(cV2); cBox2 = new QVBoxLayout(); cBox2->addWidget(cV2); ui->label_2->setLayout(cBox2); cM2->start();
Out of curiosity, why do you need that ?
@SGaist I just to rotate the live feed from camera. Also i still didnt get how can i do it using my mentioned code.
Using the code you posted ? You can't.
You'll likely need to implement your own QAbstractVideoSurface.