Show value for custom type in object inspector

While you are debugging QtCreator, the object inspector shows a column named Value . For native types, this shows their value, but QString is not an eigenvalue, and its value is also shown.

Object inspector in Qt Creator

In this figure, foo_object is a custom type, and I want to show its description. Is there any way to do this?

+5
source share
1 answer

In order for the custom complex type to display correctly in the Qt Creator object inspector, you must either use an existing one or write your own debug helper ,

They basically allow you to determine how your data should be interpreted.

+2
source

Source: https://habr.com/ru/post/1205435/


All Articles