Sometime when I want to debug a variable, I will see a scene as in the attachment picture.
There are 2 variables have the same name (another 1 has a suffix of "@1") in Locals and Expressions window.
The variable p_data is the variable that I wish to debug.
It is a struct which contain a lot of data (QString, int, double, bool and etc).
The value inside the variable are all random value & the value will not update in the watch window even I've execute some code like
But when I show the data in GUI:
The label is able to show "ABC".Qt Code:
ui->label->setText(p_data.name);To copy to clipboard, switch view to plain text mode
That means the data is successful update into the variable but failed to debug it.
Can I know why will this happened?
Is my coding style got problem?
My Qt version is Qt 4.8.0 for Desktop - MinGW (Qt SDK).
Bookmarks