Hey, me neither! However, they use a custom technique for painting top level items. It's not a built-in feature one can just turn on nor it's documented anywhere. That's why I pointed out where it's implemented so you could have taken look how they do it.
I don't have Qt sources on this computer so right now I'm unable to give you more detailed instructions than looking for SheetDelegate::paint() in the source files that were already mentioned. As far as I remember, it checks whether an item being painted is a top level item and if so, paints it as a button with the help of styles. Implement a similar item delegate, and use QAbstractItemView::setItemDelegate() to take it into use.
Bookmarks