1
0

DnD to load image file

This commit is contained in:
Gary Wang
2019-09-29 15:52:35 +08:00
parent a86efaaeb3
commit 771ec335fe
6 changed files with 197 additions and 46 deletions

20
graphicsscene.h Normal file
View File

@@ -0,0 +1,20 @@
#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