问题
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