[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] TreeView and its itemDelegate
From: Albert Cervera i Areny <albert () nan-tic ! com>
Date: 2009-05-29 14:19:32
Message-ID: 200905291619.37702.albert () nan-tic ! com
[Download RAW message or body]
A Divendres, 29 de maig de 2009, Ben De Luca va escriure:
> Hi List,
>
> I am implimenting a treeview and I wanted the editor that I use to
> change tree names to show the name, rather than being blank. When I
> look at the tree view it is using a QtGui.QStyledItemDelegate so I
> subclass that with a completely empty function and then set it as my
> trees item delegate. When I do this though I notice that none of the
> items show up in the view any longer.
>
>
> My questions are,
> Are the delegates used for displaying data normally
> or only when they are about to be edited?
>
> if they are shown in the 'normal' view how do you specify when
> one is an edit or not.
> What does a tree view really use as its delegate?
I don't know if I understood you correctly, but It seems you might be looking
for this:
http://doc.trolltech.com/4.5/qitemeditorfactory.html
>
>
>
> -bd
> _______________________________________________
> PyQt mailing list PyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
--
Albert Cervera i Areny
http://www.NaN-tic.com
Ṃbil: 669 40 40 18
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic