【发布时间】:2013-06-06 10:21:32
【问题描述】:
当我在 totalview 调试器中双击 QString 对象时,会出现此窗口。我怎样才能得到它的确切价值。
我尝试过command.toUtf8().constData(),但它打印出Cannot find name "toUtf8"。
【问题讨论】:
标签: c++ debugging qstring totalview
当我在 totalview 调试器中双击 QString 对象时,会出现此窗口。我怎样才能得到它的确切价值。
我尝试过command.toUtf8().constData(),但它打印出Cannot find name "toUtf8"。
【问题讨论】:
标签: c++ debugging qstring totalview
::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} } } }
}
}
将此添加到$HOME/.tvdrc 飞。第一个是Qt3,第二个是Qt4。
【讨论】:
对于QT5,请将以下内容添加到文件$HOME/.tvdrc
::TV::TTF::RTF::build_struct_transform {
name {^class QString$}
members {
{ string { $wstring_s16 cast {{ * { d }} + 1 } } }
}
}
【讨论】: