Using QPainter for displaying live camera output
Solved
General and Desktop
-
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();
-
Hi,
Out of curiosity, why do you need that ?
-
Using the code you posted ? You can't.
You'll likely need to implement your own QAbstractVideoSurface.