Re: [PyQt] Override QStyledItemDelegate.initStyleOption not working?

2012-01-11 Thread Phil Thompson
On Tue, 10 Jan 2012 21:19:18 +0100, Andreas Pakulat ap...@gmx.de wrote: On 10.01.12 10:19:13, Phil Thompson wrote: On Tue, 10 Jan 2012 00:11:49 +0100, Andreas Pakulat ap...@gmx.de wrote: Hi, I'd like to customize the display of a model via a styleditemdelegate, in particular I want to

Re: [PyQt] Override QStyledItemDelegate.initStyleOption not working?

2012-01-11 Thread Andreas Pakulat
On 11.01.12 14:47:25, Phil Thompson wrote: On Tue, 10 Jan 2012 21:19:18 +0100, Andreas Pakulat ap...@gmx.de wrote: On 10.01.12 10:19:13, Phil Thompson wrote: On Tue, 10 Jan 2012 00:11:49 +0100, Andreas Pakulat ap...@gmx.de wrote: Hi, I'd like to customize the display of a model via

Re: [PyQt] Override QStyledItemDelegate.initStyleOption not working?

2012-01-10 Thread Phil Thompson
On Tue, 10 Jan 2012 00:11:49 +0100, Andreas Pakulat ap...@gmx.de wrote: Hi, I'd like to customize the display of a model via a styleditemdelegate, in particular I want to add a decorating icon depending on some custom role from the model. As far as I can see the easiest way to do this

Re: [PyQt] Override QStyledItemDelegate.initStyleOption not working?

2012-01-10 Thread Andreas Pakulat
On 10.01.12 21:19:18, Andreas Pakulat wrote: On 10.01.12 10:19:13, Phil Thompson wrote: On Tue, 10 Jan 2012 00:11:49 +0100, Andreas Pakulat ap...@gmx.de wrote: Hi, I'd like to customize the display of a model via a styleditemdelegate, in particular I want to add a decorating icon

[PyQt] Override QStyledItemDelegate.initStyleOption not working?

2012-01-09 Thread Andreas Pakulat
Hi, I'd like to customize the display of a model via a styleditemdelegate, in particular I want to add a decorating icon depending on some custom role from the model. As far as I can see the easiest way to do this would be overriding initStyleOption since then I can set the icon and icon-size