I think it&#39;s best if you provide a stripped piece of code of what you&#39;ve achieved so far and let the list take a look at it..<div><br></div><div><br><div class="gmail_quote">On Fri, Mar 19, 2010 at 10:17 PM, starglider develop <span dir="ltr">&lt;<a href="mailto:starglider.dev@gmail.com">starglider.dev@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Nick,<br>I&#39;m trying to make it work without luck, is there any python example?<br>The example that is in <i>Rapid GUI Programming With Python and Qt</i> is only for stackedwidgets.<br>

<br>Thank you.<div><div></div><div class="h5"><br><br><br><div class="gmail_quote">
On 19 March 2010 10:38, Nick Gaens <span dir="ltr">&lt;<a href="mailto:mail@nickgaens.com" target="_blank">mail@nickgaens.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">


Take a look at a QStackedLayout.. You can add multiple widgets, each having their own layout, to it and set it as the central widget of your mainwindow. There&#39;s no need for deleting a layout and set a new one, since you alternate between the added widgets / layouts.<div>




<br></div><div>Check out <a href="http://doc.trolltech.com/4.3/qstackedlayout.html#details" target="_blank">http://doc.trolltech.com/4.3/qstackedlayout.html#details</a> to see a short example..<br><br><div class="gmail_quote">


<div><div></div><div>On Thu, Mar 18, 2010 at 11:39 PM, starglider develop <span dir="ltr">&lt;<a href="mailto:starglider.dev@gmail.com" target="_blank">starglider.dev@gmail.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex"><div><div></div><div>Hi,<br>I have a QMainWindow with a main Vertical Layout and  3 HLayouts and several Widgets in every layout,<br>


but the program needs to remove all the layouts to create another one with a widget.<br>

How can I remove the original layouts? I was unable to find an answer in the internet.<br>
<br>Thank you in advance for your help.<br><br>Regards<br>
<br></div></div><div>_______________________________________________<br>
PyQt mailing list    <a href="mailto:PyQt@riverbankcomputing.com" target="_blank">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></div><br><br clear="all"><br>-- <br>Nick Gaens<br>
</div>
<br>_______________________________________________<br>
PyQt mailing list    <a href="mailto:PyQt@riverbankcomputing.com" target="_blank">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></blockquote></div><br>
</div></div><br>_______________________________________________<br>
PyQt mailing list    <a href="mailto: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></blockquote></div><br><br clear="all"><br>-- <br>Nick Gaens<br>
</div>