pineapple-pictures/graphicsscene.h
2019-09-29 17:58:10 +08:00

21 lines
367 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);
private:
QGraphicsItem * m_theThing;
};
#endif // GRAPHICSSCENE_H