Re: [PyQt] Fwd: drawComplexControl

2007-12-23 Thread Oleg Klimov
On Sun, 2007-12-23 at 17:11 +0100, Attila Olah wrote: > To put it straight: > > Is it possible to *always* show a complex widget in a tree/table cell > without writing my own paint()? > > My current opinion is NO, not even in C++. Widget is more then paint(), it should be also mouseMove(), keyPr

Re: [PyQt] Fwd: drawComplexControl

2007-12-23 Thread Oleg Klimov
On Sun, 2007-12-23 at 06:18 +0100, Attila Olah wrote: > How do I draw e.g. a tool box in a QTreeView? I tried override the > model's delegate's paint() function, but it didn't work. I'd like to > do something like this: > http://doc.trolltech.com/4.3/qstyle.html#drawComplexControl > in PyQt4. Is i

[PyQt] Fwd: drawComplexControl

2007-12-22 Thread Attila Olah
Hi everyone, How do I draw e.g. a tool box in a QTreeView? I tried override the model's delegate's paint() function, but it didn't work. I'd like to do something like this: http://doc.trolltech.com/4.3/qstyle.html#drawComplexControl in PyQt4. Is it the right approach? Regards, aatiis