I have a custom object based on QStandardItem that possesses several properties. Normally these objects are listed in a QTreeView, but occasionally I'd like to display a report with them in a QTableView.

Let's say, for example, that Person derives from QStandardItem and has the properties Name, Address, FavoriteColor, and SpouseName. The Person's DisplayRole is usually Name, but for the QTableView I'd like to have an entire row populated by their Name, Address, FavoriteColor, and SpouseName, each in a column.

Is there a straightforward Qt way to display a single QStandardItem across several rows like this? All I can think of is spawning a row of generic QStandardItems, each with its text set to the property I want, but that seems... rough, at best.

Or... is my concept fundamentally flawed at the outset when I had Person inherit from QStandardItem?