Please, help me to crypt a Qt byte array using Crypto++ library and TEA algorythm!

Looking at QCrypto from qt-apps I see, that to crypt standart string with a byte key I should use this:
Qt Code:
  1. string lInputText;
  2. string lResultText;
  3. QByteArray fEncryptionKey;
  4.  
  5. ...
  6.  
  7. byte lKey[TEA::DEFAULT_KEYLENGTH];
  8. byte lIVector[TEA::BLOCKSIZE];
  9.  
  10. StringSource(reinterpret_cast<const char*>(fEncryptionKey.data()), true,
  11. new HashFilter(*(new SHA256), new ArraySink(lKey, TEA::DEFAULT_KEYLENGTH))
  12. );
  13. memset(lIVector, 0x00, TEA::BLOCKSIZE);
  14.  
  15. CBC_Mode<TEA>::Encryption Encryptor(lKey, sizeof(lKey), lIVector);
  16.  
  17. StringSource(lInputText, true,
  18. new StreamTransformationFilter(Encryptor,
  19. new HexEncoder(new StringSink(lResultText)))
  20. );
To copy to clipboard, switch view to plain text mode 

But what should I do if I have QByteArray InputData, QByteArray Key and I want to have QByteArray OutputData at output?
Thanks!