Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. LinkClicked signal of QWebView is not effective in AspX page!!!
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Qt WebKit
3 Posts 3 Posters 4.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yangyue811
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dangelog
      wrote on last edited by
      #2

      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?

      Software Engineer
      KDAB (UK) Ltd., a KDAB Group company

      1 Reply Last reply
      0
      • G Offline
        G Offline
        gadlol
        wrote on last edited by
        #3

        Try this:

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

        hello programming

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved