[PyQt] Word wrap in QLabel - strange resizing - rephrased

2011-08-22 Thread Mads Ipsen
Sorry for my extremely sloppy writing. I'll try again: Hi, If you set wordWrap to True for a QLabel which has been added to a widget with a layout, the resizing of the parent widget is kinda strange: The widget can be resized to nothing etc. I've attached a small example, displaying two

Re: [PyQt] Word wrap in QLabel - strange resizing - rephrased

2011-08-22 Thread Jeremy Sanders
Mads Ipsen wrote: I've attached a small example, displaying two widgets which both include a QLabel: one with wordwrap on, and one without. Try to resize the two widgets and see if you can reproduce the behavior. This must be a bug, right? This is a fairly well known Qt bug but I can't

Re: [PyQt] Word wrap in QLabel - strange resizing - rephrased

2011-08-22 Thread Mads Ipsen
Thanks. It seems strange to me though, that something like this even can be an issue, in the sense that it haven't been fixed ages ago. But maybe it isn't as trivial as it looks? Mads On 08/22/2011 12:39 PM, Jeremy Sanders wrote: Mads Ipsen wrote: I've attached a small example,

Re: [PyQt] Word wrap in QLabel - strange resizing - rephrased

2011-08-22 Thread Jeremy Sanders
Mads Ipsen wrote: It seems strange to me though, that something like this even can be an issue, in the sense that it haven't been fixed ages ago. But maybe it isn't as trivial as it looks? I seem to recall it being a design issue, so it's hard to fix without breaking something else. Perhaps