【问题标题】:QList with nested types isn't shown properly in VS debugger具有嵌套类型的 QList 在 VS 调试器中未正确显示
【发布时间】:2014-05-08 13:46:51
【问题描述】:

QList<foo> 在调试器中正确显示,但是,像 QList<foo::bar> 这样的嵌套结构却没有。

例如,对于这段代码:

struct foo { struct bar { int var; }; };
struct bar { int var; };
...
QList<foo::bar> list1;
QList<bar> list2;
...

这是调试器将显示的内容:

注意:我已经必须编辑 autoexp.dat 以正确显示 QVector,因为 VS 的 QT 插件中似乎存在一个错误,无法为 Qt5 正确设置它们。

那么有没有办法解决这个问题(通过编辑 autoexp.dat/其他东西)?

【问题讨论】:

    标签: c++ qt debugging visual-studio-2008 qt5


    【解决方案1】:

    移至 Visual Studio 2010,这将解决您的问题:

    【讨论】:

      猜你喜欢
      • 2018-10-29
      • 1970-01-01
      • 2021-09-22
      • 1970-01-01
      • 2019-07-25
      • 2021-12-07
      • 2013-06-05
      • 2020-12-22
      • 1970-01-01
      相关资源
      最近更新 更多