
Originally Posted by
quickNitin
but it is still giving same output.
Really? Is "qmenubar.h:29: error: expected initializer before 'QtGuiModule'" still there? Well, in that case I have no more ideas what the solution could be.
As far as the second error is concerned:
va.cpp: In member function 'virtual void vA1::initGui()':
va.cpp:98: error: no matching function for call to 'QAction::QAction(QIcon, const char [4], vA1* const)'
/usr/local/Trolltech/Qt-4.1.2//include/QtGui/qaction.h:173: note: candidates are: QAction::QAction(const QAction&)
...
va.cpp: In member function 'virtual void vA1::initGui()':
va.cpp:98: error: no matching function for call to 'QAction::QAction(QIcon, const char [4], vA1* const)'
/usr/local/Trolltech/Qt-4.1.2//include/QtGui/qaction.h:173: note: candidates are: QAction::QAction(const QAction&)
...
To copy to clipboard, switch view to plain text mode
It seems that in line 98 of va.cpp you are calling QAction constructor, but with wrong parameters. There is no QAction(QIcon, const char [4], vA1* const) constructor (at least according to compiler
) and it gives you a list of similar ones, which exist.
Bookmarks