Subclassing QItemSelectionModel
-
Hi I am new to Qt Creator. I am looking for simple example of subclassing QItemSelectionModel for QTableView. I want to only enable multiple row selection for the first two columns on my QTableView and disable the rest of my columns where i have a delegate for editing the model data.
The first two columns are data that won't be changing. The multiple selection allows me to enter one value and apply it to multiple channels.
Any help would be appreciated.
Thanks
-
I did figure out how to do this. I made a"simple" mistake and it took me two hours to find out.
Thanks anyway.
-
Just to add little info:
when creating instance of subclass don't forget to pass view/widget model as parent else you will waste 3 hours like me.