LIBS += -L$${_PRO_FILE_PWD_}/Packing/zlibLIBS += -llibz
QByteArray obj;QByteArray pref=obj.left(4);// сжатые данные (little-endian -> big-endian)obj[0]=pref[3];obj[1]=pref[2];obj[2]=pref[1];obj[3]=pref[0];QByteArray deflate = qUncompress(obj);
QByteArray zip=qCompress(xml);QByteArray pref=zip.left(4);// big-endian -> little-endianzip[0]=pref[3];zip[1]=pref[2];zip[2]=pref[1];zip[3]=pref[0];