Hi
I think you action runs out of scope
it seems to be local variable
QAction actions[11];
and you take address of them so it does not copy but refernce inside the list
listOfMenus[0].addAction(&actions[i]);
but it looks to me like the actions[11]; lives in constructor and hence
when Mainwindow is shown, they are all already deleted.
Move the list to be a member of the class and see.
Damn Pl45m4 beat me to it :)