Instead of QByteArray::count() which is deprecated since Qt 6.4
QByteArray::count()
See also: https://doc.qt.io/qt-6/qbytearray-obsolete.html