Strange problem with QMenu
In my main window header I have the following lines:
@ QMenu *viewMenu;
In my constructor I have:
@ viewMenu = menuBar()->addMenu("&View");
I get the following error message:
bq. ..\mainwindow.cpp:26: error: invalid use of incomplete type 'struct QMenuBar'
Am I doing something wrong?
Have you missed out #include<QMenuBar> in the cpp?
Never mind I fixed the issue. Common logic suggested including QMainWindow should have been enough but I had to include QMenu and QMenuBar manually...
Thanks a lot, man! It's really fix the problem!
This post is deleted!
"incomplete type " is a classic :)