problem with QMainWindow setCentralWidget and stackedWidget
Posted
by user63898
on Stack Overflow
See other posts from Stack Overflow
or by user63898
Published on 2010-05-15T11:56:58Z
Indexed on
2010/05/15
12:04 UTC
Read the original article
Hit count: 227
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 ?
© Stack Overflow or respective owner