I’d like a toolbox thing sort of like the widget tree in the designer. As far as I can tell, for the categories it simply adds a top level tree item to itself. Also afaict, it is a basic subclass of QTreeWidget, so I should be able to see what it’s doing and make the same calls on a QTreeWidget to get the same behavior.
I can’t seem recreate the way the categories draw themselves in the designer though. I’m missing something. How is this done?
You’ll want to look at Qt’s View Delegates. These allow you to change how things are drawn in their item view classes.