#include "mainwindow.h" #include #include Mat frame; VideoCapture cap; QString dir=""; QString ip_url; QPushButton *button_url; QPushButton *button_video; QPushButton *button_photo; cv::VideoWriter *video; QComboBox *format_combo; int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; //w.setWindowIcon(QPixmap(path_temp.c_str())); w.show(); return a.exec(); }