hi,

i want to new a qwebview instance like this inside the constructor of the mainwindow class

view=new QWebView(this);

the code compiles. but the program exits automatically saying "

Qwidget: must construct a QApplication before a QPaintDevice

"

i tried to use the qtdesigner to generate a mainwindow with a webview. and that one has the same problem.

what happened? how to fix it?

thank you very much.