<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br><br>--- On <b>Mon, 6/15/09, David Boddie <i>&lt;david@boddie.org.uk&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: David Boddie &lt;david@boddie.org.uk&gt;<br>Subject: Re: [PyQt] RE: PyQt newbie needs some help with a small report designer program<br>To: pyqt@riverbankcomputing.com<br>Date: Monday, June 15, 2009, 8:36 PM<br><br><div class="plainMail">On Thu Jun 11 01:22:05 BST 2009, Lee wrote:<br><br>&gt;&gt; &gt;You call its setBackgroundRole() method in its paintEvent()<br>&gt;&gt; &gt; implementation. This appears to cause another paint event to be sent to<br>&gt;&gt; &gt; the Resizer object, so you just keep receiving paint events.<br>&gt;&gt;<br>&gt;&gt; Ok, I think that makes sense.&nbsp; Removing does fix the issue.<br><br>&gt;You can call setBackgroundRole() in the
 widget's __init__() method if you<br>&gt;want.<br><br>That's actually where i moved it...<br><br>&gt;&gt; If the resizing of the page header pushes the lower band(s) past the<br>&gt;&gt; viewable area of the child window, I want the scroll bar to come up and<br>&gt;&gt; allow me to scroll down to make that part visible. (This last part seems to<br>&gt;&gt; be working.)<br><br>&gt;So, if I've understood correctly, you want a window containing a vertical<br>&gt;arrangement of bands, each of which can be resized.<br><br>&gt;When a band is resized, the total amount of space taken up by the bands<br>&gt;changes, but the size of the window itself doesn't change, so what you<br>&gt;really want is a viewport onto a canvas or widget containing the bands.<br><br>I've been thinking more along the lines of a widget containing the bands.&nbsp; That's the direction I think I'll go.&nbsp; I haven't had any time to start trying things in code yet though.&nbsp;
 <br><br>&gt;&gt; I hope this all makes sense.<br><br>&gt;I think so.<br><br>:)&nbsp; Yep, I think you got it... <br><br><br>&gt;&gt; My reasons for doing this is I find that every now and then I have the need<br>&gt;&gt; for a very lightweight reporting component in python.&nbsp; Also, I have been<br>&gt;&gt; wanting to learn Qt, so I figured I would tackle both at the same time.<br><br>&gt;I think having a project you want to build is probably the best way to<br>&gt;learn something. This might be a bit of a tricky starting project because<br>&gt;I'm not sure that QSplitter can do what you want out of the box.<br><br>&gt;My initial idea was to put a QSplitter into a QScrollArea and add widgets<br>&gt;to it, but that doesn't work as desired because QSplitter always tries to<br>&gt;reduce the space taken up by one widget when you increase the size of<br>&gt;another.<br><br>&gt;David<br><br><br>Yeah, seems a bit ambition straight off, but that's ok, I
 don't have any other personal projects to work on at the moment, so this will keep me honest for a while.<br><br><br>Thanks for you comments,<br>Lee<br><br><br><br><br><br><br><br>______________________________________________<br>PyQt mailing list&nbsp; &nbsp; <a ymailto="mailto:PyQt@riverbankcomputing.com" href="/mc/compose?to=PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br><a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br></div></blockquote></td></tr></table><br>