[Interest] Adding a QStyledDelegate to a tree view

Krzysztof Kawa krzysiek.kawa at gmail.com
Fri Feb 21 14:47:26 CET 2014


Use C++11 "override" keyword if you can. It would save you the trouble.


2014-02-21 13:18 GMT+01:00 Graham Labdon <Graham.Labdon at avalonsciences.com>:

> Ahh that was it
>
> Thanks
>
> -----Original Message-----
> From: interest-bounces+graham.labdon=avalonsciences.com at qt-project.org[mailto:
> interest-bounces+graham.labdon=avalonsciences.com at qt-project.org] On
> Behalf Of André Somers
> Sent: 21 February 2014 12:13
> To: interest at qt-project.org
> Subject: Re: [Interest] Adding a QStyledDelegate to a tree view
>
> Graham Labdon schreef op 21-2-2014 12:51:
> > Hi
> > I have a tree view that renders data contained in a class derived from
> QAbstractItemView, now I want to add a QStyledItemDelegate.
> > So I call
> >
> >          m_treeView->setItemDelegate(new SessionStyledDelegate(this));
> >
> > But none of the methods in my delegate get called.
> >
> > Is there anything else that I need to do?
> > _______________________________________________
> > Interest mailing list
> > Interest at qt-project.org
> > http://lists.qt-project.org/mailman/listinfo/interest
> Are you use that you got the signatures of the methods you reimplemented
> correct, including const-ness?
>
> André
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140221/4c2ede18/attachment.html>


More information about the Interest mailing list