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:
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
Thanks for the help. I was able to track it down to errors in my parent(…)
method. I was just returning:
return createIndex(0, 0, some_unique_value);
which apparently works just fine for tree views but not for QColumnView.
Now on to figure out how to display checkboxes next to each item. I've t
I have found when I use a custom model, most issues using views, are tied to an
issue of some corner case condition in the model not being handled correctly.
~~Scott
Original message
From: Michael Jackson
Date: 5/3/22 3:05 PM (GMT-08:00)
To: Scott Bloom , Qt Interest List
No idea that existed. Now just trying to figure out how to translate qmake
instructions to modern CMake instructions to be able to link against it.
--
Mike Jackson
On 5/3/22, 4:41 PM, "Scott Bloom" wrote:
Have you run the modeltest on it?
Scott
From: Interest On Behalf Of Micha
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 QTree