n tree mode):

\image html observer_widget_doc_tree_view_categorized.jpg "Observer Widget With Categories (Tree View Mode)"

In table view mode the categories are shown in an extra column. To enable this column we need to specify the correct column hint:

\code
observer_widget->activeHints()->setItemViewColumnHint(ObserverHints::ColumnNameHint | ObserverHints::ColumnCategoryHint);
\endcode

Columns are described in more detail in the \ref controlling_displayed_columns section.

\image html observer_widget_d