Here is my iadfuqgraphicsview.h. I encounter errors such as
iadfuqgraphicsview.h:13: error: expected unqualified-id at end of input
iadfuqgraphicsview.h:13: error: expected `,' or `;' at end of input
How can I solve this?
Qt Code:
#ifndef IADFUQGraphicsView_H #define IADFUQGraphicsView_H #include <QtGui> #include <QObject> { Q_OBJECT public: ~IADFUQGraphicsView(){} ; protected: private: QPointF* m_clickedPt; QGraphicsPixmapItem* m_pixmapItem; QGraphicsScene* m_scene; QAction *cutAct; QAction *copyAct; QAction *pasteAct; } #endifTo copy to clipboard, switch view to plain text mode
Also, How can I create an iadfuqgraphicsview.cpp that properly overrides the contextMenuEvent and mousePressEvent methods of QGraphicsView? Can anybody create a code for that?
Bookmarks