[Interest] Subclassing QTreeWidgetItem together with QObject
André Somers
andre at familiesomers.nl
Fri Nov 27 17:20:18 CET 2015
Op 27/11/2015 om 17:15 schreef Igor Mironchik:
>
>>
>>>> Or is there a better way to do what I described?
>>>>
>>>> Thanks in advance,
>>> Can you point out to what the signals/slots do you want to have?
>> I just need one slot in it to be able to trigger update of displayed
>> columns for that item/row in the treeview.
>>
>> Regards,
>
> As André Somers wrote why not to implement custom model for this? ...
>
You may also be able to just use a lambda function connected to the
changed signal of your data to do the same. At the point where you
build up your tree, you should have access to both the source object and
the item that represents it in the tree, so you could add a connection
to a lambda there.
André
More information about the Interest
mailing list