[Qt-interest] Launching new browser from within QtWebKit
Darryl Hunter
darryl.hunter at codersoft.com.au
Sun Jan 16 01:28:54 CET 2011
Hi all,
I'm using Qt 4.7.1, on Windows 7. My application has a QWebView in it,
which has loaded a page from my server. I want to have a link that, when
clicked, opens the users default browser to show the page, rather than
opening it within the QWebView.
I set target="_blank" on the page, and it works fine when I test it within
Internet Explorer (a new copy of IE is launched), but when I follow the link
within the QWebView, nothing happens. If I don't have the target="_blank"
then it follows the link as you would expect (within the QWebView).
Is there a setting I need to enable to make this happen? I couldn't see
anything in QWebSettings that appeared relevant.
Any help / suggestions would be greatly appreciated.
Regards,
Darryl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110116/0e506848/attachment.html
More information about the Qt-interest-old
mailing list