Try this:
the header(customgv.h):
#ifndef CUSTOMGV_H
#define CUSTOMGV_H
#include <QGraphicsView>
{
Q_OBJECT
public:
~customgv();
};
#endif
#ifndef CUSTOMGV_H
#define CUSTOMGV_H
#include <QGraphicsView>
class QWidget;
class QGraphicsScene;
class customgv : public QGraphicsView
{
Q_OBJECT
public:
customgv(QGraphicsScene*, QWidget*= NULL);
~customgv();
};
#endif
To copy to clipboard, switch view to plain text mode
the cpp(customgv.cpp):
#include <QtGui>
#include "customgv.h"
{
}
#include <QtGui>
#include "customgv.h"
customgv::customgv(QGraphicsScene *scene, QWidget* parent) :QGraphicsView(scene, parent)
{
}
To copy to clipboard, switch view to plain text mode
You might have another class named IADF...
Regards
Bookmarks