Home > other >  QWebKit link to open it
QWebKit link to open it

Time:11-02

QWebView * webView; The webView - & gt; SetUrl (" http://www.baidu.com "); The window shows "baidu" page, click other links can't open is how to return a responsibility? QWebKit does not support?

CodePudding user response:

Your program there is an error, it is possible

CodePudding user response:

It is natural, because in the baidu search out are those links in a new window opens, it have to deal with your own (create a new webview window, and open the corresponding pages)

CodePudding user response:

How to obtain a connection in the code of address? Right-click popup menu in the QWebView is coming, how to get the news of the right-click menu?

CodePudding user response:

You can see in the browser in the qt demo implementation, to know how to do,

CodePudding user response:

Examples of qt browser found no? Answers in there read, see if can can read,=============================================to tackle the problem of your carefully see help can solve, 1, page () - & gt; SetLinkDelegationPolicy (QWebPage: : DelegateAllLinks); 2, receive linkClicked (QUrl) signal processing at a deeper level, you can find the answer in the qt browser example,

CodePudding user response:

But with an account of how to open, such as sina website login sina mail?

CodePudding user response:

The building Lord, can chat yao, WeChat xiaomo154590358, I got a browser can't open web pages
  • Related