PDA

View Full Version : Problem with QwebView



moh.gup@gmail.com
14th September 2010, 14:20
Hi,I am unable to use some <a > tad wtih target=blank
so some function like window.open or window.print is not working
I changed setting of QWebView
QWebSettings *setting= m_ui->webView->settings();
setting->setAttribute(QWebSettings::JavascriptCanOpenWindow s,true);
setting->setAttribute(QWebSettings::JavascriptEnabled,true) ;
setting->setAttribute(QWebSettings::JavaEnabled,true);
setting->setAttribute(QWebSettings::JavascriptCanAccessClip board,true);
setting->setAttribute(QWebSettings::DeveloperExtrasEnabled, true);

I think any new window is not opening in QWebView
Please Suggest

e8johan
15th September 2010, 09:28
You will need to re-implement the QWebView::createWindow method. It is not 100% clear in the documentation, but the default implementation does nothing (source here: http://qt.gitorious.org/qt/qt/blobs/4.7/src/3rdparty/webkit/WebKit/qt/Api/qwebview.cpp#line935 )

moh.gup@gmail.com
16th September 2010, 13:11
Hi
Can u tell me
how can i access the url (request) when QWebview calls createWindow?

Please help

moh.gup@gmail.com
17th September 2010, 15:22
Hi
I am able to access url at createwindow with the help of QWeppage,

But web Print and download command still not working in QwebView.
Please suggest