Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt open external links from flash player hosted on QWebKit
Forum Updated to NodeBB v4.3 + New Features

Qt open external links from flash player hosted on QWebKit

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.4k 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.
  • U Offline
    U Offline
    umen242
    wrote on last edited by
    #1

    i have flash player running on QWebkit , and on the flash player there are some web links that needs to be open in external browser , what i did is :

    @m_webView->page()->setLinkDelegationPolicy(QWebPage::LinkDelegationPolicy::DelegateAllLinks);
    connect(m_webView->page(),SIGNAL(linkClicked(const QUrl&)),
    this,
    SLOT(linkClickedHandler(const QUrl&)),Qt::DirectConnection);

    void WebBroswerDeleget::linkClickedHandler(const QUrl& url)
    {
    QDesktopServices::openUrl(QUrl(url.toString(), QUrl::TolerantMode));
    }
    @

    but its never triggered even of i change in the connect from m_webView->page() to m_webView

    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