QtAda provides convenience subprograms for output value of the object of
some classes. For example, for output value of the object of the QString
class in the user friendly form you can use
q_string_image function in the GDB command line:
(gdb) print q_string_image (str) My String (gdb)
Table 2.1. List of supported classes and corresponding image subprograms
| Class name | Image subprogram name |
|---|---|
| QDate | q_date_image |
| QDateTime | q_date_time_image |
| QLine | q_line_image |
| QLineF | q_line_f_image |
| QModelIndex | q_model_index_image |
| QPoint | q_point_image |
| QPointF | q_point_f_image |
| QRect | q_rect_image |
| QRectF | q_rect_f_image |
| QSize | q_size_image |
| QSizeF | q_size_f_image |
| QString | q_string_image |
| QTime | q_time_image |