After upgrading to Qt 6.0, the compiler told me
qzxing/src/QZXing.cpp:16: error: 'QtCore/QTextCodec' file not found
qzxing/src/QZXing.cpp:16:10: fatal error: 'QtCore/QTextCodec' file not found
#include <QtCore/QTextCodec>
^~~~~~~~~~~~~~~~~~~
qzxing/src/QZXing.cpp:16:10: note: did not find header 'QTextCodec' in framework 'QtCore' (loaded from '/Applications/Qt/6.0.0/clang_64/lib')
According to Qt's documentation, it can be imported by adding QT += core5compat
.
However, the compiler told me that "Unknown module(s) in QT: core5compat".
How to solve this problem?