QByteArray a;
vector<char> v(a.length(), a.constData());