[Interest] Subclassing QTreeWidgetItem together with QObject
Andrej Kacian
andrej at kacian.sk
Fri Nov 27 17:56:26 CET 2015
On Fri, 27 Nov 2015 17:20:18 +0100
André Somers <andre at familiesomers.nl> wrote:
> >
> > 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.
Thanks to both of you, I will look into it in the future. For now, the
setup I described works fine, I will return to it when there's more
time.
Regards,
--
Andrej
More information about the Interest
mailing list