[Solved] error C4996: QString::SkipEmptyParts declaration has been rejected

Recently upgraded QT version from Qt5 12.9 upgrade to qt5.0 15.2. There are several errors in compilation, one of which is error c4996: qstring:: skipemptyparts. The declaration has been rejected.

It is found that Qt5 In versions after 14, QString::SkipEmptyParts has been moved to Qt::SkipEmptyParts.

After modifying QString::SkipEmptyParts to Qt::SkipEmptyParts in the code, the compilation passes and the problem is solved.

Read More: