TianZerL / Anime4KCPP

A high performance anime upscaler
MIT License
1.76k stars 138 forks source link

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

Closed FantasyGmm closed 1 year ago

FantasyGmm commented 1 year 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 1 year ago

PR吧