I have found the answer,the reason is QByteArray override the operate const char *() as follow

QByteArray::operator const char * () const
Thanks everyone!