Can't see some objects' internals in Qt Cr

2019-07-19 23:53发布

I'd like to see the member variables of objects whilst debugging in Qt Creator. I can see all of the internals of my own objects, but I can't see the members of a QGraphicsView, for example.

qt locals and expressions

I'm also curious to know why it says <unavailable synchronous data> for std::map. Here's a small example of that:

#include <map>
#include <string>

int main(int argc, char *argv[])
{
    std::map<int, std::string> someMap;
    someMap.insert(std::make_pair(1, "cats"));
    someMap.insert(std::make_pair(2, "dogs"));
    someMap.insert(std::make_pair(3, "vlag"));
    return 0;
}

My build settings are as follows:

qt build settings qt creator version

1条回答
贪生不怕死
2楼-- · 2019-07-20 00:14

See my answer to the question "Can I customize autoexp.dat to enable visualization of a QT QDomNode in Visual Studio 2010 Debugger?". Qt uses the pimpl ideom to hide the private data of its classes and to provide binary compatibility within a major version.

查看更多
登录 后发表回答