QT5出现mainwindow.cpp:9:32: error: called object type 'QMenuBar *' is not a function or function pointer

QMenuBar *menuBar = menuBar();

原因:变量名与系统内置的重名

原文地址:https://www.cnblogs.com/BASE64/p/14461816.html