system output qt to string code example Example: how to convert qt string to string QString qs; // do things std::cout << qs.toStdString() << std::endl;