I got problem,QWebView use flash ,all hyper link of flash is not work!



  • I got problem,
    QWebView use flash ,all hyper link of flash is not work!
    please help me!

    here is code:

    @
    gameView->load(QUrl(jsonObj["url"].toString()));
    QWebSettings *webSets=QWebSettings::globalSettings();
    webSets->setAttribute(QWebSettings::JavaEnabled,true);
    webSets->setAttribute(QWebSettings::PluginsEnabled,true);
    webSets->setAttribute(QWebSettings::JavascriptCanAccessClipboard,true);
    webSets->setAttribute(QWebSettings::JavascriptCanOpenWindows,true);
    webSets->setAttribute(QWebSettings::LocalContentCanAccessRemoteUrls,true);
    webSets->setAttribute(QWebSettings::LocalContentCanAccessFileUrls,true);
    webSets->setAttribute(QWebSettings::XSSAuditingEnabled,true);
    webSets->setAttribute(QWebSettings::SpatialNavigationEnabled,true);
    webSets->setAttribute(QWebSettings::DeveloperExtrasEnabled,true);
    gameView->page()->setLinkDelegationPolicy(QWebPage::DelegateAllLinks);
    connect(gameView,SIGNAL(linkClicked(QUrl)),SLOT(openBrowseUrl(QUrl)));
    @

    QUrl(jsonObj["url"].toString() is web page with flash application

    click flash link, is not work,
    i try use QAxWidget way , is work!


Log in to reply
 

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