But I told you to include QGraphicsView in the header.
But I told you to include QGraphicsView in the header.
same error. sorry kind of sleepy here.
I tried to place
#include <QtGui/QGraphicsView>
also tried to place
#include <QGraphicsView>
also tried the forward declaration
class QGraphicsView;
still got the same error as before
iadfuqgraphicsview.h:16: 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:12: error: candidates are: IADFUQGraphicsView::IADFUQGraphicsView(const IADFUQGraphicsView&)
iadfuqgraphicsview.h:16: error: IADFUQGraphicsView::IADFUQGraphicsView(QGraphicsSc ene*, QWidget)
Image Analysis Development Framework Using Qt (IADFUQ)
Try this:
the header(customgv.h):
Qt Code:
#ifndef CUSTOMGV_H #define CUSTOMGV_H #include <QGraphicsView> class QWidget; class QGraphicsScene; { Q_OBJECT public: ~customgv(); }; #endifTo copy to clipboard, switch view to plain text mode
the cpp(customgv.cpp):
Qt Code:
#include <QtGui> #include "customgv.h" { }To copy to clipboard, switch view to plain text mode
You might have another class named IADF...
Regards
sincnarf (27th August 2007)
What the.. this worked. Now trying to override contextMenuEvent and mousePressEvent s
Image Analysis Development Framework Using Qt (IADFUQ)
Bookmarks