早换比晚换好
1,编译弹出错误提示
\include\QtCore\qdatetime.h:122: error: C2589: “(”:“::”右边的非法标记
方法 ,单击错误行跳到哪一行;
static inline qint64 nullJd() { return std::numeric_limits<qint64>::min(); }改为
static inline qint64 nullJd() { return (std::numeric_limits<qint64>::min)(); }2,
按F7弹错误提示
Qt Visual Studio Add-in
---------------------------
The following error occured:
There's no Qt version assigned to this project for platform Win32. Please use the 'change Qt version' feature and choose a valid Qt version for this platform.
我改过Qt的版本的设置了,还是不行后来在解决方案上右击,那里也有个Qt版本的设置,设置之后,提示框消失。
3,最好用Qt的pro文件重新生成vs的解决方案。然后注意Qt各个模块的勾选。
4,不一致的地方:
在main中定义
QDir::setCurrent(QCoreApplication::applicationDirPath ());
失效了。
也就是说程序中那些以程序路径为相对路径写法全都有问题。大概5.3.2是为了更严格一些吧。