I try from a seperate Headerfile to create a toolbar with buttons in MainWindow. I get the error
"MainWindow was not declared in this scope".
I am trying to organise my code in different files, for having a better view of it, and to have "modules" for later (re)use. I am not even sure which approach is correct for that.
This is what I have:
QToolBar *toolbar = new QToolBar(MainWindow);
But get the error above.
Is there an expert who can help me further with this.