<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Le 24/04/11 08:10, Sarah Mount a écrit :
<blockquote
cite="mid:BANLkTi=MqxROz3z+xzUBs7ZtDUaidP7-Dg@mail.gmail.com"
type="cite">
<pre wrap="">Sorry if this is an obvious question, but I couldn't find an answer to
it on the using-containers page or on StackOverflow. I have a bunch of
tab widgets that need to have appropriate layouts applied to them and
to the tabs they contain. Working with the .ui files in Qt4 Designer,
I notice that if I click on an individual tab inside the tab widget,
then it is by default marked as "break layout", like every other
widget. If I then try to apply a layout to the tab, the layout instead
gets applied to the whole tab widget. So, to get around this I could
put a GroupBox or Frame inside each tab and give that a layout, but
this seems long-winded. Is there something obvious I have missed or
does Qt assume that each tab will have a container widget placed
inside it?
Many thanks,
Sarah
</pre>
</blockquote>
No, you don't need groupBox or frame for that.<br>
<br>
Place your widgets in first tab,<br>
choose an appropriate layout for these widgets,<br>
whith this layout selected, select the whole tabWidget and apply a
vertical layout.<br>
<br>
Do the same for each tab.<br>
<br>
Now, select a tab in objects inspector and scroll the properties
editor and you'll see the properties for each layout.<br>
<br>
Cheer's<br>
<br>
<div class="moz-signature">-- <br>
Vincent V.V.<br>
<a href="https://launchpad.net/oqapy">Oqapy</a></div>
</body>
</html>