mirror of
https://gitee.com/drabel/LibQQt.git
synced 2025-01-04 10:18:44 +08:00
28 lines
492 B
C++
Executable File
28 lines
492 B
C++
Executable File
#ifndef QQTGRAPHICSVIEW_H
|
|
#define QQTGRAPHICSVIEW_H
|
|
|
|
#include <QGraphicsView>
|
|
|
|
|
|
class QQTGraphicsView : public QGraphicsView
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit QQTGraphicsView(QWidget *parent = 0);
|
|
|
|
signals:
|
|
|
|
public slots:
|
|
|
|
|
|
// QWidget interface
|
|
protected:
|
|
void paintEvent(QPaintEvent *);
|
|
|
|
// QGraphicsView interface
|
|
protected:
|
|
void drawItems(QPainter *painter, int numItems, QGraphicsItem *items[], const QStyleOptionGraphicsItem options[]);
|
|
};
|
|
|
|
#endif // QQTGRAPHICSVIEW_H
|