qt/LedOK/player/elevideo - qt.h

17 lines
407 B
C
Raw Permalink Normal View History

2023-04-18 14:14:46 +08:00
#ifndef ELEVIDEO_H
#define ELEVIDEO_H
#include <QGraphicsView>
#include <QMediaPlayer>
class EleVideo : public QGraphicsView {
Q_OBJECT
public:
explicit EleVideo(QString path, int, int, QWidget *parent = nullptr);
QMediaPlayer *player = nullptr;
protected:
void showEvent(QShowEvent *event) override;
void hideEvent(QHideEvent *event) override;
};
#endif // ELEVIDEO_H