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

 

QMenuBar *menuBar = menuBar();

 

 

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

posted @ 2021-03-01 09:15  撑死算工伤吗  阅读(629)  评论(0编辑  收藏  举报