non-pod static qstring报错解决方法 Qt经验集

  • A+
所属分类:Qt专栏 Qt经验集

 

报错代码:

namespace UserDefUiCtrlID

{

static const QString UiCtrlID_NewProject = "PrjManagerMod_NewProject";//新建

}

 

修改后:

class UserDefUiCtrlID

{

public:

inline static const QString UiCtrlID_NewProject = "PrjManagerMod_NewProject";//新建

}

 

 

Qt大课堂-QtShare

发表评论

您必须登录才能发表评论!