<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> I  want to make the QTextEdit<br>
span the whole main window from left to right, and then below it I want<br>
another QTextEdit that also spans all the way horizontally but takes a lot<br>
less room (a fixed amount) vertically.<br>
</blockquote></div><br></div><div class="gmail_extra">Either you need to stack the two edits vertically (another VBox) or you could use a QSplitter if you want to give the user control over the proportions.<br><br></div><div class="gmail_extra">I second the suggestion to work on your design in QDesigner. It is a much quicker way to learn how the different widgets interact than a code'n'test loop.  It is especially educational to review the fields of the inspector for every widget. After sketching your UI in Designer you can convert it to code using the pyuic5 utility. You can review the code it generates and use it, or then write your own.<br></div></div>