Results 1 to 6 of 6

Thread: Unity3d plugin loading issue

  1. #1
    Join Date
    Feb 2015
    Posts
    185
    Thanks
    5
    Qt products
    Qt5
    Platforms
    MacOS X Windows

    Default Unity3d plugin loading issue

    I am trying to load a page designed to be loaded with unity 3d plugin with the below code.
    Qt Code:
    1. QWebSettings::globalSettings()->setAttribute(QWebSettings::PluginsEnabled, true);
    2. QWebView *webView = new QWebView();
    3. webView->page()->settings()->setAttribute(QWebSettings::PluginsEnabled, true);
    4.  
    5. webView->load(QUrl("file:///Users/user/Downloads/Empty/Empty.html"));
    6. webView->show();
    To copy to clipboard, switch view to plain text mode 

    unity3d.jpg

    The page is loaded as blank.

    Getting the below errors
    Cannot find executable for CFBundle 0x7f97f9f18d40 </Library/Internet Plug-Ins/Unused> (not loaded)

    But unity web player.plugin is found in the /Library/Internet Plug-Ins

    Kindly let me know where I am going wrong

  2. #2
    Join Date
    Feb 2015
    Posts
    185
    Thanks
    5
    Qt products
    Qt5
    Platforms
    MacOS X Windows

    Default Re: Unity3d plugin loading issue

    I tried loading this page in QT/examples/webkitswidgets/browser, there too I am getting the same issue.

  3. #3
    Join Date
    Feb 2015
    Posts
    185
    Thanks
    5
    Qt products
    Qt5
    Platforms
    MacOS X Windows

    Default Re: Unity3d plugin loading issue

    It uses NPAPI plugin to load the page. So at first, it was not getting loaded in chrome browser. Once I enabled NPAI (chrome://flags -> NPAPI enable), the page is loaded successfully.

    Like the same, is there a way to enable NPAPI plugin explicitly in Qt. Since I have enabled plugins in my code.


    Note : code in 1st post of this thread

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Unity3d plugin loading issue

    WebKit uses NPAPI by default.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Feb 2015
    Posts
    185
    Thanks
    5
    Qt products
    Qt5
    Platforms
    MacOS X Windows

    Default Re: Unity3d plugin loading issue

    In that, the attached page doesn't get loaded.Empty.zip
    Please let me know, what should be done to load this page successfully.

  6. #6
    Join Date
    Feb 2015
    Posts
    185
    Thanks
    5
    Qt products
    Qt5
    Platforms
    MacOS X Windows

    Default Re: Unity3d plugin loading issue

    How to load unity3d object in QWebEngineView
    or Is there a way I can play the unity3d animation in QWebEngineView

Similar Threads

  1. Loading plugin and "Incompatible Qt library" issue.
    By TorAn in forum Qt Programming
    Replies: 4
    Last Post: 31st May 2010, 13:04
  2. Loading QWidgets as a Plugin
    By aylek in forum Qt Programming
    Replies: 2
    Last Post: 25th May 2010, 22:34
  3. Loading SQLite plugin. Again!
    By miwarre in forum Newbie
    Replies: 5
    Last Post: 12th November 2009, 10:23
  4. How to debug plugin loading?
    By yosefm in forum Qt Tools
    Replies: 1
    Last Post: 1st November 2007, 12:02
  5. plugin loading problem
    By naresh in forum Qt Programming
    Replies: 6
    Last Post: 9th June 2007, 19:05

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.