I got that error when working on a simple Qt app and found it impossible to do debugging since I could not visualize any of the objects.

It turned out that the C++ Optimization was set to /O2. So if you change that back to Disabled, debugging will be all good again.

  • Right click on your project, Properties
  • Expand Configuration Properties, C/C++, Optimization
  • For Optimization set "Disabled (/Od)"
  • Apply
  • Clean
  • Rebuild

I should do some research to confirm but it appear not to be a problem related to Qt at all but more of a C++ compiler option mismatch.