qt/LedOK/player/elevideo.h

21 lines
484 B
C
Raw Normal View History

2023-04-18 14:14:46 +08:00
#ifndef ELEVIDEO_H
#define ELEVIDEO_H
#include "ffplayer.h"
#include <QWidget>
class EleVideo : public QWidget {
Q_OBJECT
public:
explicit EleVideo(QString path, QWidget *parent = nullptr);
~EleVideo() {if(player!=0) player->quit(); }
FFPlayer *player = nullptr;
QImage img;
protected:
void paintEvent(QPaintEvent *) override;
void showEvent(QShowEvent *) override;
void hideEvent(QHideEvent *) override;
};
#endif // ELEVIDEO_H