Hi Tabish,<br><br>I would like to replace centralwidget of a mainwindow with another widget which is created separately. <br><br>For. ex. when I click on a button on mainwindow it should replace the current centralwidget by a new one.<br>
<br>Please let me know if you need more info.<br><br>Thanks,<br>Mrugesh.<br><br><br><div class="gmail_quote">2010/1/19 tabish--> <span dir="ltr"><<a href="mailto:tabish_shaikh555@yahoo.com">tabish_shaikh555@yahoo.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
can you please describe ur problem in a better way?<br>
<div><div></div><div class="h5"><br>
Mrugesh Chauhan wrote:<br>
><br>
> Hello all,<br>
><br>
> Have been trying to find solution to one problem.<br>
><br>
> There's a main window. And there's a widget. Let's call this widget --><br>
> widget_new.<br>
><br>
> I would like to replace centralwidget of the mainwindow with the<br>
> widget_new.<br>
><br>
><br>
> setCentralwidget by passing widget_new ( generated by designer) doesn't<br>
> help.<br>
><br>
> Someone must have come across such a problem. Any leads will be helpful.<br>
><br>
> Thanks,<br>
> Mru<br>
><br>
</div></div><div class="im">> _______________________________________________<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>
><br>
<br>
--<br>
</div>View this message in context: <a href="http://old.nabble.com/centrawidget-and-mainwindow-tp27212686p27221899.html" target="_blank">http://old.nabble.com/centrawidget-and-mainwindow-tp27212686p27221899.html</a><br>
<div><div></div><div class="h5">Sent from the PyQt mailing list archive at Nabble.com.<br>
<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>
</div></div></blockquote></div><br>