When I'm debugging my program, the values displayed for floating point numbers are totally wrong.
double a = 1.0;
QList<double> list;
list << a;
With this example the debbugger shows that a
contai开发者_如何学运维ns 1.0
that list
contains one item, but its displayed value is rubbish (seems that is not read at the right place) -- its real value is correct anyhow if I display it in my program UI.
Qt Visual intergation fails on QLists http://pix.gregseth.net/4b5ea2be.png
Anyone had this problem and knows how to solve it?
Have you added the knowledge of Qt's types to Visual Studio? If not, see the information about it on Qt's mailing list and on this blog entry about integrating Qt and Visual Studio.
Works as expected for me, using Qt Creator.
Have you tried running the same code with another debugger?
精彩评论