[PyQt] New Example for Advanced TreeViews

Hans-Peter Jansen hpj at urpla.net
Sat Mar 5 23:34:33 GMT 2011


On Saturday 05 March 2011, 23:50:18 Entity Reborn wrote:
> Sorry, small untested bug introduced just before I sent that.
>
> On Sat, Mar 5, 2011 at 2:47 PM, Entity Reborn 
<entityreborn at gmail.com>wrote:
> > I'd like to submit these two files as an advanced example for
> > manipulation of treeviews.
> > This example demonstrates how to override the default drawn
> > decoration for checkboxed items (replacing it with a radiobutton
> > decal) as well as the accomanying logic, as well as a few other
> > extras I've thrown in.
> >
> > I'd be very honored if this would be added to the Examples
> > directory, but obviously, it's up to the developers of PyQt.
> >
> > Feel free to comment on the code, hack it, tear it to bits, etc.
> > Some of the quality of the code isn't the greatest, but a little
> > TLC would go over well.
> > Enjoy!
> >
> > Run test.py to launch the demo.
> >
> > --
> > ~EntityReborn

Well, the radio items aren't drawn at all here. From a cursory look over 
the code, that is strange, but I cannot look into this more 
intensively, ATM. 

python: 2.6
sip: 4.12.1
qt4: 4.6.3
pyqt4: snapshot-4.8.4-278054fd857c

The whole thing is lacking a generic name, and it _looks_ somewhat 
hackish. Examples should come clear and concise, and might deserve a 
few notes about the purpose/implementation, if they do not derive from 
the Qt examples.



More information about the PyQt mailing list