Quote Originally Posted by high_flyer View Post
do what?
Your code is "doing" what I suggested.
You are using the const variant, it depends on your needs if you need the const or not.
its not about const. It about temporary object. Qt docs has mentioned to avoid this mistake.(Read the QByteArray docs)