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. I got problem,QWebView use flash ,all hyper link of flash is not work!
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 444 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.
  • T Offline
    T Offline
    tangbao203
    wrote on last edited by
    #1

    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!

    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