Check out example codes for "how to convert qt string to string". It will help you in understanding the concepts better.

Code Example 1

QString qs;
// do things
std::cout << qs.toStdString() << std::endl;

Learn ReactJs, React Native from akashmittal.com