LinkClicked signal of QWebView is not effective in AspX page!!!



  • I am developing an inline Webbrowser. I want to get the url when I click it. The website I visit is developed by asp.net. I Use QWebView.linkclicked signal, but it can not step into my custom events, this is code fragment
    @
    view->page()->setLinkDelegationPolicy(QWebPage::elegateAllLinks);

    connect( view->page(), SIGNAL(linkClicked(const QUrl&)),this, SLOT(myClicked(const QUrl&)));
    @

    I want to konw why? Is it a bug?

    Hoping reply~

    Edit: Please use @ tags around code; Andre



  • Can you wrap your code in @ tags? Also, are you sure that the link target is actually a page, and does not instead trigger some piece of JS code?



  • Try this:

    @view->page()->setLinkDelegationPolicy(QWebPage::DelegateAllLinks);
    connect( view, SIGNAL(linkClicked(QUrl)), this, SLOT(myClicked(QUrl)) );@


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.