Change chunks to work with a QIODevice that can't deliver all data immediately and therefore works asynchronously.