TianZerL / Anime4KCPP

A high performance anime upscaler
GNU General Public License v3.0
1.82k stars 139 forks source link

GUI在QT5.12上编译错误 #95

Closed FantasyGmm closed 2 years ago

FantasyGmm commented 2 years ago

出错错误文件为 https://github.com/TianZerL/Anime4KCPP/blob/master/GUI/src/mainwindow.cpp 1463行 5.14之后的版本的写法才是Qt::SkipEmptyParts,所以5.12上会报错 需要改为

#if (QT_VERSION <= QT_VERSION_CHECK(5,14,0))
        split(',', QString::SkipEmptyParts).
#else
        split(',', Qt::SkipEmptyParts).
#endif

该部分参照上方726-732的宏定义

TianZerL commented 2 years ago

PR吧