16,203
社区成员
发帖
与我相关
我的任务
分享
class MyQGraphicsScene : public QGraphicsScene
{
public:
MyQGraphicsScene( QObject* pParent = 0 );
// QGraphicsScene interface
protected:
void drawBackground(QPainter *painter, const QRectF &rect);
void drawForeground(QPainter *painter, const QRectF &rect);
};
class MyQGraphicsView : public QGraphicsView,
protected QOpenGLFunctions
{
public:
MyQGraphicsView( QWidget* pParent = 0 );
// QGraphicsView interface
protected:
void drawBackground(QPainter *painter, const QRectF &rect);
void InitGL();
void ResizeGL(int width, int height);
void PaintGL();
};