culturered_client/PhotoVideoPlayer/PhotoDisplay.h
2024-09-07 11:34:44 +08:00

35 lines
471 B
C++

#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