[PyQt] Delete a Laytou

Nick Gaens mail at nickgaens.com
Sat Mar 20 14:02:55 GMT 2010


I think it's best if you provide a stripped piece of code of what you've
achieved so far and let the list take a look at it..


On Fri, Mar 19, 2010 at 10:17 PM, starglider develop <
starglider.dev at gmail.com> wrote:

> Hi Nick,
> I'm trying to make it work without luck, is there any python example?
> The example that is in *Rapid GUI Programming With Python and Qt* is only
> for stackedwidgets.
>
> Thank you.
>
>
>
> On 19 March 2010 10:38, Nick Gaens <mail at nickgaens.com> wrote:
>
>> 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's no need for deleting a layout and set a new one, since
>> you alternate between the added widgets / layouts.
>>
>> Check out http://doc.trolltech.com/4.3/qstackedlayout.html#details to see
>> a short example..
>>
>> On Thu, Mar 18, 2010 at 11:39 PM, starglider develop <
>> starglider.dev at gmail.com> wrote:
>>
>>> Hi,
>>> I have a QMainWindow with a main Vertical Layout and  3 HLayouts and
>>> several Widgets in every layout,
>>> but the program needs to remove all the layouts to create another one
>>> with a widget.
>>> How can I remove the original layouts? I was unable to find an answer in
>>> the internet.
>>>
>>> Thank you in advance for your help.
>>>
>>> Regards
>>>
>>> _______________________________________________
>>> PyQt mailing list    PyQt at riverbankcomputing.com
>>> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>>>
>>
>>
>>
>> --
>> Nick Gaens
>>
>> _______________________________________________
>> PyQt mailing list    PyQt at riverbankcomputing.com
>> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>>
>
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>



-- 
Nick Gaens
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100320/28cf8637/attachment.html>


More information about the PyQt mailing list