#ifndef VIDEOSPLITTHREAD_H #define VIDEOSPLITTHREAD_H #include class VideoSplitThread : public QThread { Q_OBJECT public: VideoSplitThread(int elew, int eleh, int dpw, int sph, QList &, QPointF pos, QByteArray file); int mEleW, mEleH, mDPW, mSPH; QList mWidths; QPointF pos; QByteArray file; protected: void run(); signals: void emErr(QString); void emProgress(int); public slots: void stop() { stoped = true; } private: int lastPro{0}; std::atomic_bool stoped{false}; }; #endif // VIDEOSPLITTHREAD_H