When compiling my project, I get the error:
Error: D:\Programming\Projects\Aprovado\examwindow.cpp:6: error:
invalid use of incomplete type ‘struct Ui::ExamWindow’
But there isn’t anything wrong with that. Here’s the line:
ExamWindow::ExamWindow(QWidget *parent) : QMainWindow(parent), ui(new
Ui::ExamWindow)
The files: http://dl.dropbox.com/u/2181407/damn.rar
Well, using QT4 with the follow files in the project: main.cpp, mainwindow.cpp, studywindow.cpp, mainwindow.h, studywindow.h, ui_mainwindow.h, ui_study.h, it works fiiine.
When I try to add the rest of the files it starts outputing errors.
I tried, I tried, I tried, and I cannot get out of it.
Could you guys help me out?
Assuming
ui_examcalendar.his the right UI generated header for theExamWindowclass, you should change the name of the top level widget in the designer for the fileExamCalendar.uiCurrently, it is named
Formso the generated UI class name isUi::Form, so if you wantUi::ExamWindow, it should be namedExamWindow.