[Qt-interest] problem with QMainWindow setCentralWidget and stackedWidget

Meir Yanovich meiry242 at gmail.com
Sat May 15 06:48:06 CEST 2010


in short , how to switch from widget to widget , and still remain them in
the setCentralWidget
scop

On Sat, May 15, 2010 at 7:06 AM, Meir Yanovich <meiry242 at gmail.com> wrote:

> Hello
> i have gui the i created in the designer , simple one .
> QMainWIndow that contains stackedWidget , the application starts with
> stackedWidget index 0 that contains qwebkit widget and after some user flow
> ,it changes to stackedWidget
> index 1 that contains QTree widget , to center the first widget i use in
> the QMainWindow constractor this line of code
> this->setCentralWidget(ui.webView); but when the application switching to
> index number 1 im getting exception that is
> coming from the switching command .
> why ?
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100515/d2904e3f/attachment.html 


More information about the Qt-interest-old mailing list