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(); }
void DialogCamera::cameraOpen() { Capture capture; capture.setFormat(true); capture.run(); }