Important: Please read the Qt Code of Conduct -

Qt open external links from flash player hosted on QWebKit

  • 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 :

    connect(m_webView->page(),SIGNAL(linkClicked(const QUrl&)),
    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

Log in to reply