在使用 QChecksum 时,需要引用 Qt 的核心库 QtCore,并在代码中添加以下 #include 语句:

#include <QtCore/QChecksum>

这样就可以使用 QChecksum 类来计算数据的校验和。

Qt 中使用 QChecksum 需要引用哪些库