dboun / MultiPatientImageProcessing

Bulk processing of medical images
1 stars 1 forks source link

DataTreeView item highlighting #4

Closed dboun closed 5 years ago

dboun commented 5 years ago

Since this might get confusing, with highlighted I mean the state where an item is blue, like after it gets clicked. It should also call the clicked function.

I'm not sure how to set one item of the DataTreeView as highlighted. Everything I have tried has failed (setSelected/setCurrentItem/etc), and there is surprisingly little documentation about it online that I've found.

This is a problem because when you load multiple subjects all of them get selected. Generally it will probably be a good idea to never have subjects highlighted and only allow images to be highlighted. We can just change the subject's color to something else, to showcase which one is selected.

It is also a problem because when the subject is highlighted, none of the images are, so it is confusing what happens when the opacity is changed.

Also, clicking on the checkbox next to a data (image) doesn't highlight the data. It probably should when the CheckState is changed from Unchecked to Checked.

ashishsingh18 commented 5 years ago

Checked data now also gets selected(highlighted) in tree widget. Not sure if it solves the problem.