QDataStream with Standard Template Library
Serialization is really helpful when storing data to files or sending it over the network. When writing any network application if control messages are sent as a plain text it becomes very cumbersome to create object from it. So it may be useful to send the whole object as a binary data and reconstruct it at other end. In Qt to achieve this goal QDataStream can be used.