Can't see some objects' internals in Qt Creator's Locals and Expressions debug window

☆樱花仙子☆ 提交于 2019-12-23 22:09:43

问题


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.

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:


回答1:


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.



来源:https://stackoverflow.com/questions/10169974/cant-see-some-objects-internals-in-qt-creators-locals-and-expressions-debug-w

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!