Re: [PyQt] Shouldn't an item view keep a reference to its associated model?

2007-07-20 Thread Florent Rougon
Phil Thompson [EMAIL PROTECTED] wrote: Yes, it reflects the Qt behaviour. Models are often shared between views and so (by default) aren't owned by any particular view. If you know there will only ever be one view then make it the parent of the model. I thought it should be possible to have

Re: [PyQt] Shouldn't an item view keep a reference to its associatedmodel?

2007-07-20 Thread Florent Rougon
Giovanni Bajo [EMAIL PROTECTED] wrote: It is not what Qt does. PyQt doesn't play tricks with object lifetimes: it exposes Qt's underlying object model. [...] OK, thanks to you and Phil for the answers. It makes sense now. Regards, -- Florent ___

Re: [PyQt] Shouldn't an item view keep a reference to its associatedmodel?

2007-07-21 Thread Florent Rougon
Hans-Peter Jansen [EMAIL PROTECTED] wrote: and next time, you're facing empty widgets unexpectedly, it will ring a huge bell somewhere between your ears.. ;-) Oh, yes. I guess this is a typical beginner's mistake. ;-) BTW: thank you very much for PyQt (and thanks to Qt developers if some

[PyQt] Simple patch for pylupdate4

2013-08-30 Thread Florent Rougon
Hello, The following trivial patch to pylupdate/fetchtr.cpp (for PyQt 4.10.3) allows pylupdate4 to correctly process backslashes at the end of a line, instead of replacing such backslashes with a linefeed (ASCII 10) character. This is very useful in triple-quoted strings to avoid introducing

Re: [PyQt] Simple patch for pylupdate4

2013-09-01 Thread Florent Rougon
Phil Thompson p...@riverbankcomputing.com wrote: Done - something similar. Thank you... and sorry for arriving a bit late. In case you find it useful, here is a better patch that performs universal newline translation at the basic level (i.e., not only when parsing a Python string). As