qq_26480033
qq_26480033
2015-04-15 11:00

求教 QT QVideoProbe有关问题

camera=new QCamera(this);
camera->setCaptureMode(QCamera::CaptureVideo);
viewfriend=new QCameraViewfinder(this);
viewfriend->setMinimumSize(200,200);
viewfriend->move(0,0);
camera->start();
videoProbe=new QVideoProbe;
if(!videoProbe->setSource(camera))ui->statusBar->showMessage("videoProbe not open");
connect(videoProbe,SIGNAL(videoFrameProbed(QVideoFrame)),this,SLOT(showe(QVideoFrame)));
camera->setViewfinder(viewfriend);

    请问setSource(camera);返回false ,怎么回事啊?
  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答