'Qt - TableView with categories

I am looking to replicate the look of the TableView presented in this picture using Qt. The one in the picture looks to be created with Windows Forms. The main part I'm wondering about is how the different items have different categories kind of (with each section having a header).

Is it possible to do this in a Qt TableView, or do I need to use a TreeView?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source