Ok, well I want to create a sort of list such as this:

[information1] [otherinfo1] [somemoreinfo1] [button1] [othbutton1]
[information2] [otherinfo2] [somemoreinfo2] [button2] [othbutton2]

So I made a TableWidget, because it has columns and you can add Widgets inside a cell.
But let's say I am making a list of 30 of these items. I would use some QList<QTableWidgetItem *>, and loop through these. Seems all perfect, of course, until someone clicks on a header to sort it. I mean I want to sort them, but I don't want each column to be separate from their row.

In other words, if someone presses sort by otherinfo... then let's say otherinfo3 comes first? well then the cell next to it should be information3 and somemoreinfo3... Do you see what I mean?

How would I fix that?