示例#1
0
void DialogCamera::videoOpen()
{
  QString fileName = QFileDialog::getOpenFileName(this, tr("Open Video"), QDir::currentPath());
  if(fileName.isEmpty())
    return;
  Capture capture;
  capture.setFormat(false);
  capture.setFileName(fileName);
  capture.run();
}
示例#2
0
void DialogCamera::cameraOpen()
{
  Capture capture;
  capture.setFormat(true);
  capture.run();
}