I'm trying to to put buttons on items in a QTreeView. I don't mean using buttons as an editor when clicked, but just have the button always there on some items to perform a quick action on the item.

For example, something like the little "Eject" button that appears next to removable devices in the left-hand library tree in iTunes.

I could make a delegate for the item and draw the button myself, but then I'd have to handle all the button press and hovers and everything.

Any ideas?

Thanks!
Joel