Re: [Interest] QColumnView and QTreeView using same model

2022-05-04 Thread Michael Jackson
Thank you for the tips. Got the checkboxes working. -- Mike Jackson On 5/4/22, 10:06 AM, "Interest on behalf of Tony Rietwyk" wrote: On 4/05/2022 11:43 pm, Michael Jackson wrote: > ... > Now on to figure out how to display checkboxes next to each item. I've tried: > > Qt:

Re: [Interest] QColumnView and QTreeView using same model

2022-05-04 Thread Tony Rietwyk
On 4/05/2022 11:43 pm, Michael Jackson wrote: ... Now on to figure out how to display checkboxes next to each item. I've tried: Qt::ItemFlags ImportDataStructureModel::flags(const QModelIndex& index) const { if(!index.isValid()) { return {}; } return Qt::ItemIsUserCheckable | Qt

Re: [Interest] QColumnView and QTreeView using same model

2022-05-04 Thread Michael Jackson
t on it? Scott   From: Interest On Behalf Of Michael Jackson Sent: Tuesday, May 3, 2022 12:57 PM To: Qt Interest List Subject: [Interest] QColumnView and QTreeView using same model   I have a custom QAbstractItemModel implementation that works correctly when using a QTreeView, i.e., I can open t

Re: [Interest] QColumnView and QTreeView using same model

2022-05-03 Thread Scott Bloom
t; wrote: Have you run the modeltest on it? Scott From: Interest On Behalf Of Michael Jackson Sent: Tuesday, May 3, 2022 12:57 PM To: Qt Interest List Subject: [Interest] QColumnView and QTreeView using same model I have a custom QAbstractItemModel implementation that works correctly when u

Re: [Interest] QColumnView and QTreeView using same model

2022-05-03 Thread Michael Jackson
Behalf Of Michael Jackson Sent: Tuesday, May 3, 2022 12:57 PM To: Qt Interest List Subject: [Interest] QColumnView and QTreeView using same model I have a custom QAbstractItemModel implementation that works correctly when using a QTreeView, i.e., I can open the complete hierarchy of the tree wi

Re: [Interest] QColumnView and QTreeView using same model

2022-05-03 Thread Scott Bloom
Have you run the modeltest on it? Scott From: Interest On Behalf Of Michael Jackson Sent: Tuesday, May 3, 2022 12:57 PM To: Qt Interest List Subject: [Interest] QColumnView and QTreeView using same model I have a custom QAbstractItemModel implementation that works correctly when using a

[Interest] QColumnView and QTreeView using same model

2022-05-03 Thread Michael Jackson
I have a custom QAbstractItemModel implementation that works correctly when using a QTreeView, i.e., I can open the complete hierarchy of the tree without any issues. I switched up to the QColumnView due to size constraints and now using the same exact instance of the model I can only navigate i