Placing template in a QByteArray
-
For Qt standard variables there are alreday "output operators":https://qt-project.org/doc/qt-4.8/qdatastream.html#operator-lt-lt defined.
Others you have to write your own overlayed output operators.