culturered_client/PhotoVideoPlayer/PhotoDisplay.h

35 lines
471 B
C
Raw Normal View History

2024-09-07 03:34:44 +00:00
#ifndef PHOTODISPLAY_H
#define PHOTODISPLAY_H
#include <QLabel>
#include <QWidget>
#include <QTimer>
namespace Ui {
class PhotoDisplay;
}
class PhotoDisplay : public QWidget {
Q_OBJECT
public:
PhotoDisplay(QWidget* parent = nullptr);
void ShowPhoto(const QString& path);
void MoveCenter();
protected:
void resizeEvent(QResizeEvent* event) override;
private:
Ui::PhotoDisplay* ui;
QPixmap m_pixmap;
};
#endif // PHOTODISPLAY_H