pineapple-pictures/graphicsscene.h
2020-01-01 14:51:46 +08:00

25 lines
484 B
C++

#ifndef GRAPHICSSCENE_H
#define GRAPHICSSCENE_H
#include <QGraphicsScene>
class GraphicsScene : public QGraphicsScene
{
Q_OBJECT
public:
GraphicsScene(QObject *parent = nullptr);
~GraphicsScene();
void showImage(const QPixmap &pixmap);
void showText(const QString &text);
void showSvg(const QString &filepath);
void showGif(const QString &filepath);
QPixmap renderToPixmap();
private:
QGraphicsItem * m_theThing;
};
#endif // GRAPHICSSCENE_H