QString str = "text";char n [100] = str.toStdString.c_str();
QString str;// . . .std::string std_string = str.toStdString();char* char_array = new char[std_string.length() + 1];strcpy(char_array, std_string.c_str());// . . .delete char_array;