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. Html object tag doesn't work on windows 8 with QWebPluginFactory
Forum Updated to NodeBB v4.3 + New Features

Html object tag doesn't work on windows 8 with QWebPluginFactory

Scheduled Pinned Locked Moved Qt WebKit
1 Posts 1 Posters 747 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.
  • E Offline
    E Offline
    ecabot
    wrote on last edited by
    #1

    I am using the <object> tag using Qt to activate some plugin and it works fine except on windows8.

    HTML:
    @
    <object id="ash3dviewer" type="application/x-ash-viewer3d" data="..." width="800px" height="800px">
    Your browser does not support plugins
    </object>
    @

    C++:
    @
    class PluginsFactory : public QWebPluginFactory {
    PluginsFactory(QObject* parent);

    virtual QObject* create(
        const QString& mimeType, 
        const QUrl& url, 
        const QStringList& argumentNames, 
        const QStringList& argumentValues) const override;
    
    
    virtual QList<Plugin> plugins() const override;
    

    };

    QWebSettings::globalSettings()->setAttribute(QWebSettings::PluginsEnabled, true);
    @

    On windows 7 all three methods are called (constructor, plugins, and create) but on windows 8 the create method is never called so my plugin doesn't have a chance to handle the mime type "application/x-ash-viewer3d" properly!

    So the <object> tag fails to work and I get "Your browser does not support plugins" on windows8.

    It's as if the QWebSettings::PluginsEnabled was disabled "hard" on windows8...

    Any hint ?

    Note: this is with Qt 4.8.5 (I cannot update to a more recent version unfortunately...)

    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