On quarta-feira, 29 de janeiro de 2014 21:45:47, phil.kurs...@gmail.com wrote: > I have a sync thread that needs to read from a database and sends data to a > server. The server response can be very large. The sync thread should > process them. I somehow fail to seem how I could decouple the background > thread from the network stuff.
The main thread does the networking and receives all the data. *ALL* the data, no matter how big. Then it passes the data to the sync thread. If the data is too big for memory, use QTemporaryFile. You cannot process the data as it comes from that other thread. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest