request for member "..." in "..." which is of non-class type "..."

D:debugqt6main.cpp:15: error: request for member 'exec' in 'a', which is of non-class type 'QCoreApplication(int, char)'
     return a.exec();
              删掉参数类型

原文地址:https://www.cnblogs.com/neo3301/p/13169877.html