Create a tree model (*) and use Qt:ecorationRole in data() to set the icon.
From your pdf file, I'm not sure if you can get away with a list model, though. It's worth trying, since those are a lot easier than tree models.
(*) This is in itself quite difficult. Look at the Qt docs for info on how to do that. And take heart by knowing that you will be very pleased with the model and your code once it works.
Bookmarks