If you have your web view in the ui, then use that view instead of creating new one.
If not, then remove setting up the ui and use setCetralWidget instead, for example:
MainWindow
::MainWindow(QWidget *parent
){
QWebView *my_web;
my_web = new QWebView(this);
my_web->setGeometry(100,100,1000,1000);
my_web
->load
(QUrl("http://www.google.com/"));
this->setCentralWidget( my_web );
}
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
{
QWebView *my_web;
my_web = new QWebView(this);
my_web->setGeometry(100,100,1000,1000);
my_web->load(QUrl("http://www.google.com/"));
this->setCentralWidget( my_web );
}
To copy to clipboard, switch view to plain text mode
Ps use [CODE] tags in future.
Bookmarks