[PyQt] centrawidget and mainwindow

M Chauhan mrch81 at gmail.com
Wed Jan 20 17:14:38 GMT 2010


Hi Tabish,

I would like to replace centralwidget of a mainwindow with another widget
which is created separately.

For. ex. when I click on a button on mainwindow it should replace the
current centralwidget by a new one.

Please let me know if you need more info.

Thanks,
Mrugesh.


2010/1/19 tabish--> <tabish_shaikh555 at yahoo.com>

>
> can you please describe ur problem in a better way?
>
> Mrugesh Chauhan wrote:
> >
> > Hello all,
> >
> > Have been trying to find solution to one problem.
> >
> > There's a main window. And there's a widget. Let's call this widget  -->
> > widget_new.
> >
> > I would like to replace centralwidget of the mainwindow with the
> > widget_new.
> >
> >
> > setCentralwidget by passing widget_new ( generated by designer) doesn't
> > help.
> >
> > Someone must have come across such a problem. Any leads will be helpful.
> >
> > Thanks,
> > Mru
> >
> > _______________________________________________
> > PyQt mailing list    PyQt at riverbankcomputing.com
> > http://www.riverbankcomputing.com/mailman/listinfo/pyqt
> >
>
> --
> View this message in context:
> http://old.nabble.com/centrawidget-and-mainwindow-tp27212686p27221899.html
> Sent from the PyQt mailing list archive at Nabble.com.
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100120/a1d1ed29/attachment.html>


More information about the PyQt mailing list