[PyQt] star delegate example for current PyQt snapshot

Hans-Peter Jansen hpj at urpla.net
Wed Oct 20 17:41:31 BST 2010


Hi Phil et al.,

now, that you added __lshift__ for QPolygonF()'s, here's the star 
delegate example in return, using this feature of course.

I did change the behavior a minor bit, but it feels silly to be forced 
to select _and_ double click an item in order to trigger editing. 
Double clicking should suffice, no matter if a row is selected or not, 
doesn't it? 

Also these stars gets activated, if the pointer crosses its center 
horizontally. Hence, a zero star voting is possible, too.

I hope, you like it,
Pete
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stardelegate.tar.bz2
Type: application/x-tbz
Size: 3015 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20101020/8b020010/attachment.bin>


More information about the PyQt mailing list