t 12:02 PM
From: "Jason H"
To: "Jérôme Godbout"
Cc: "Interests Qt"
Subject: Re: [Interest] DelegateModel: Dynamic Delegate Model groups
Thanks Jerome! I'm making progress, but not quite there.
I've got it creating the list with the correct types now, b
"André Somers" , "Interests Qt"
Subject: Re: [Interest] DelegateModel: Dynamic Delegate Model groups
The way you create the object seem to be all fine. It's the container of multiple obj that may have a problem with it.
When you specify a QQmlListProperty you cannot assign
t; *Sent:* Tuesday, July 26, 2016 at 1:43 PM
>
> *From:* "Jérôme Godbout"
> *To:* "Jason H"
> *Cc:* "André Somers" , "Interests Qt" <
> interest@qt-project.org>
> *Subject:* Re: [Interest] DelegateModel: Dynamic Delegate Model g
expect Qt to internally try to promote it and succeed.
Sent: Tuesday, July 26, 2016 at 1:43 PM
From: "Jérôme Godbout"
To: "Jason H"
Cc: "André Somers" , "Interests Qt"
Subject: Re: [Interest] DelegateModel: Dynamic Delegate Model groups
Just to make
* "André Somers" , "Interests Qt" <
> interest@qt-project.org>
> *Subject:* Re: [Interest] DelegateModel: Dynamic Delegate Model groups
> QQmlListProperty<> cannot be assign with another QQmlListProperty<> or a
> QList<>, but it does support ja
r way? Or the QQmlListProperty is too tightly typed?
Sent: Tuesday, July 26, 2016 at 11:49 AM
From: "Jérôme Godbout"
To: "Jason H"
Cc: "André Somers" , "Interests Qt"
Subject: Re: [Interest] DelegateModel: Dynamic Delegate Model groups
QQm
QQmlListProperty<> cannot be assign with another QQmlListProperty<> or a
QList<>, but it does support javascript Array. I myself made a simple
function to convert:
function adaptQQLP(list_obj)
{
return [].concat(list_obj);
}
It does iterate on it and create a javascript array which is enough
M
> I'd just write my proxy model in C++ and be done with it.
>
> André
>
>
> Op 26/07/2016 om 15:46 schreef Jason H:
> > I want to have groups corresponding to the equivalent of 'SELECT DISTINCT
> > x' query. Then I want each item assigned to a group of it's value of x. For
> > example:
> > 'SE
I'd just write my proxy model in C++ and be done with it.
André
Op 26/07/2016 om 15:46 schreef Jason H:
I want to have groups corresponding to the equivalent of 'SELECT DISTINCT x'
query. Then I want each item assigned to a group of it's value of x. For
example:
'SELECT DISTINCT x' -> ['a',
I want to have groups corresponding to the equivalent of 'SELECT DISTINCT x'
query. Then I want each item assigned to a group of it's value of x. For
example:
'SELECT DISTINCT x' -> ['a', 'b', 'c']
'SELECT x,y' -> [ ['a', '1'], ['a','2'], ['b','3'], ['c', '4'], ['c','11'] ]
Then I have 3 groups:
10 matches
Mail list logo