Totalview get the value of QString
问题 When I double clicked on QString object in totalview debugger this window appears. How can I get the exact value of it. I have tried command.toUtf8().constData() but it prints Cannot find name "toUtf8" . 回答1: ::TV::TTF::RTF::build_struct_transform { name {^struct QString$} members { { ascii { $wstring_u16 cast { * { d -> unicode } } } } } } ::TV::TTF::RTF::build_struct_transform { name {^struct QString$} members { { ascii { $wstring_u16 cast {* {d -> data} } } } } } Add this to $HOME/.tvdrc