Object Detection  5.0
Image Processing Using Qt and Opencv
processhandler.h
1 #ifndef PROCESSHANDLER_H
2 #define PROCESSHANDLER_H
3 
4 #include <QObject>
5 #include <QProcess>
6 
7 class ProcessHandler : public QObject
8 {
9  Q_OBJECT
10 private:
11  QProcess *m_childProcess;
12 
13 public:
14  explicit ProcessHandler(QObject *parent = nullptr);
15  void start(QString cmd, QStringList lst);
16  QProcess *childProcess() const;
17 signals:
18  void started();
19 public slots:
20  void setChildProcess(QProcess *childProcess);
21 };
22 
23 #endif // PROCESSHANDLER_H