Home > other >  QT zlib how to use
QT zlib how to use

Time:11-07

I write in QT client, and WINDOWS server communication, hoped both sides will data compression decompression, I found that there is a # include QT & lt; Zlib. H> #include There is also a # include & lt; QtZlib/zlib. H> #include . I think it should be pro plus a QT +=inside the core GUI SQL XML zlib went, but found that I was wrong, there is no zlib, how should I use?

CodePudding user response:

I used the QByteArray QByteArray=qCompress (szSendBuff c_str (), MsgHdr. U4SourceSize); Said qCompress zlib compression is online, but I found a solution doesn't open on the server,

CodePudding user response:

Does that mean qCompress compression, can only use QT qUncompress to extract? WINDLWS ZLIB library can't solution?

CodePudding user response:

Alas,, can't, copy the source code to,

CodePudding user response:

And qUncompress qCompress affirmation is to come in pairs

CodePudding user response:

Qt the compress I remember also includes some other information, you can see the document

CodePudding user response:

LIBS +=- lz

#include
  • Related