Qt 6.11 is out! See what's new in the release
blog
How to run Camera on Linux?
-
I am running camera on Linux and getting an error that
defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.camera"
this is my code
Camera::Camera(QWidget *parent) : QMainWindow(parent), ui(new Ui::Camera) { ui->setupUi(this); mCamera = new QCamera(this); recorder = new QMediaRecorder(mCamera,this); mCameraViewfinder = new QCameraViewfinder(this); mCameraImageCapture = new QCameraImageCapture(mCamera,this); mLayout = new QVBoxLayout; mCamera->setViewfinder(mCameraViewfinder); mLayout->addWidget(mCameraViewfinder); ui->scrollArea->setLayout(mLayout); //mCameraViewfinder->show(); mCamera->start(); }Any help?
-
I am running camera on Linux and getting an error that
defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.camera"
this is my code
Camera::Camera(QWidget *parent) : QMainWindow(parent), ui(new Ui::Camera) { ui->setupUi(this); mCamera = new QCamera(this); recorder = new QMediaRecorder(mCamera,this); mCameraViewfinder = new QCameraViewfinder(this); mCameraImageCapture = new QCameraImageCapture(mCamera,this); mLayout = new QVBoxLayout; mCamera->setViewfinder(mCameraViewfinder); mLayout->addWidget(mCameraViewfinder); ui->scrollArea->setLayout(mLayout); //mCameraViewfinder->show(); mCamera->start(); }Any help?
-
-
Hi,
What version of GStreamer do you have ?
Which plugins ?
What version of Qt are you using ?
What distribution are you running ? -
There are two missing answers.
As for further trouble shooting: run your application with the
QT_DEBUG_PLUGINSenvironment variable set to 1. You can do that in the Run part of the Project panel. -
