Sorry, I was being silly.

In the end I used std::string and then converted to const char later on because QString's are not appropriate for my application.

Many thanks.
Nikki