You're right, I apologise. It just seemed obvious to me but actually it is not.
I'll try with an example.
Let assume we have this code:
// myclass.h
MyClass
{
public:
int x;
int y;
}
// main.cpp
#include "myclass.h"
// .. other stuff
MyClass foo;
foo.a = 4;
button->setText("hello");
// myclass.h
MyClass
{
public:
int x;
int y;
}
// main.cpp
#include "myclass.h"
// .. other stuff
MyClass foo;
foo.a = 4;
QPushButton *button = new QPushButton(this);
button->setText("hello");
To copy to clipboard, switch view to plain text mode
when I start the debugger and my code reaches a breakpoint, in qt-creator, on the right, there's a window where there are the variable names and their content.
In the case of "foo" I can see that the "a" field contains the value 4 and I can see the whole structure of MyClass.
The same cannot be said about "button". In that case, I cannot see the QPushButton structure neither I can see the internal fields..
What I'm trying to do is to be able to inspect these internal fields as I do for all the other classes
Edit: It wouldn't be bad to be able to inspect the Qt code as well
Bookmarks