Reputation: 132
Whatever Qt expression i try to evaluate while debugging on Visual Studio 2022 doesnt work, for example:
I'm on Debug mode, i also tried:
C/C++ > Optimization -> Optimization -> Disabled /Od
And also all options here:
I'm using Qt 6.6, VS22 latest version available today.
Upvotes: 0
Views: 73
Reputation: 38863
Often inline functions are inline even in the Debug configuration.
Navigate to QtWidget::height()
source to see
inline int QWidget::height() const
{ return data->crect.height(); }
Set a condition on w.data->crect.height()
.
If there's no success yet, repeat the condition expansion with crect.height()
that will be like
w.data->crect.y2 - w.data->crect.y1 + 1
.
Upvotes: 0