Sure thing, I attached a partial screen of what I have so far. The blue array of rectangles would be the things that are individually selectable. Ideally, I would like to be able to select things from multiple levels (e.g., boxes 1, 2, 3 in level 4-1 and 4-2 and 4-3) and be able to drag just the selected ones, like when you select multiple items in the QTreeView and drag them.
The model is already set up for the tree, so I'm just providing a different visualization at the lowest level, rather than just have the 32 items in that level lined up vertically. When I click on a rectangle, I want that small rectangle to be selected.
I used the Qt Star Delegate example as a reference. Basically I just have a rectangle and paint it 32 times. I guess my problem at this point is how to handle dealing with selecting individual boxes, and how to make them draggable. Also based on reading other threads in the forum, I'll probably run into problems later because I don't want to have to double click to trigger the edit event, then click once more to toggle the switch.
edit: I should probably say everything in the list is selectable and draggable already, and doing that essentially means "select this item, and everything below it in the tree". Every item's flag is Qt::ItemIsDragEnabled.
Bookmarks