Using your previous tips I got compilation errors that says
iadfuqgraphicsview.h:14: error: expected `,' or `...' before '*=' token
iadfuqgraphicsview.cpp:4: error: prototype for `IADFUQGraphicsView::IADFUQGraphicsView(QGraphicsS cene*, QWidget*)' does not match any in class `IADFUQGraphicsView'
iadfuqgraphicsview.h:10: error: candidates are: IADFUQGraphicsView::IADFUQGraphicsView(const IADFUQGraphicsView&)
iadfuqgraphicsview.h:14: error: IADFUQGraphicsView::IADFUQGraphicsView(QGraphicsSc ene*, QWidget)
iadfuqgraphicsview.cpp
#include <QtGui>
#include "iadfuqgraphicsview.h"
{
}
#include <QtGui>
#include "iadfuqgraphicsview.h"
IADFUQGraphicsView::IADFUQGraphicsView(QGraphicsScene *scene, QWidget* parent) :QGraphicsView(scene, parent)
{
}
To copy to clipboard, switch view to plain text mode
complete header code
#ifndef IADFUQGRAPHICSVIEW_H
#define IADFUQGRAPHICSVIEW_H
{
Q_OBJECT
public:
~IADFUQGraphicsView();
};
#endif
#ifndef IADFUQGRAPHICSVIEW_H
#define IADFUQGRAPHICSVIEW_H
class QObject;
class QWidget;
class QGraphicsScene;
class QGraphicsView;
class IADFUQGraphicsView : public QGraphicsView
{
Q_OBJECT
public:
IADFUQGraphicsView(QGraphicsScene*, QWidget*= NULL);
~IADFUQGraphicsView();
};
#endif
To copy to clipboard, switch view to plain text mode
Bookmarks