Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show value for custom type in object inspector

While you are debugging in QtCreator, the object inspector shows a column named Value. For native types it shows their value, but QString is not a native value and its value is shown too.

Object inspector in Qt Creator

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

like image 226
Jairo Avatar asked Nov 01 '22 15:11

Jairo


1 Answers

In order for a custom complex type to show up properly in Qt Creator's object inspector you should either use an existing or write your own debugging helper.

They basically allows you to define how your data should be interpreted.

like image 191
Marco A. Avatar answered Nov 15 '22 03:11

Marco A.