Results 1 to 4 of 4

Thread: QT WebKit with WebGl not Working with Qt 5.2

  1. #1
    Join Date
    Apr 2012
    Posts
    9
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default QT WebKit with WebGl not Working with Qt 5.2

    Hi All,

    I have to developed sample application to see webGL supported to Qt webKit,

    I want to know that, can we open webGL on QT WebKit with QT 4.8.4 or upper QT Version?

    if yes, can you guide how to configure QT Webkit and How to build a same?

    Thanks
    Viraj Bhatt

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QT WebKit with WebGl not Working with Qt 5.2

    "Not working" is hardly a good description of anything.

    Official Qt 5.2.0 binaries on 64-bit Linux with this code:
    Qt Code:
    1. #include <QApplication>
    2. #include <QWebView>
    3.  
    4. int main(int argc, char **argv) {
    5. QApplication app(argc, argv);
    6. QWebView view;
    7. view.setUrl(QUrl("http://www.webkit.org/blog-files/webgl/SpiritBox.html"));
    8. view.show();
    9. return app.exec();
    10. }
    To copy to clipboard, switch view to plain text mode 
    work just fine. (Actually exiting the program is causing issues but the web component does work)

  3. #3
    Join Date
    Apr 2012
    Posts
    9
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QT WebKit with WebGl not Working with Qt 5.2

    Hi,

    It may be work on Linux, but when I tried to same code in Windows with Qt 5.2.1 OpenGL, it gives Error "No WebGL Context Detected".


    can you pls, give an idea what's wrong?

    gives Error :

    QWindowsGLContext::getProcAddress: Unable to resolve 'glActiveTexture'
    QWindowsGLContext::getProcAddress: Unable to resolve 'glActiveTextureARB'
    QWindowsGLContext::getProcAddress: Unable to resolve 'glActiveTextureEXT'
    QWindowsGLContext::getProcAddress: Unable to resolve 'glBindVertexArray'
    platform\graphics\OpenGLShims.cpp(243) : WebCore::initializeOpenGLShims
    QWindowsGLContext::getProcAddress: Unable to resolve 'glBindVertexArrayARB'
    QWindowsGLContext::getProcAddress: Unable to resolve 'glBindVertexArrayEXT'
    QWindowsGLContext::getProcAddress: Unable to resolve 'glDeleteVertexArrays'
    QWindowsGLContext::getProcAddress: Unable to resolve 'glDeleteVertexArraysARB'
    QWindowsGLContext::getProcAddress: Unable to resolve 'glDeleteVertexArraysEXT'
    QWindowsGLContext::getProcAddress: Unable to resolve 'glGenVertexArrays'
    QWindowsGLContext::getProcAddress: Unable to resolve 'glGenVertexArraysARB'
    QWindowsGLContext::getProcAddress: Unable to resolve 'glGenVertexArraysEXT'
    QWindowsGLContext::getProcAddress: Unable to resolve 'glIsVertexArray'
    QWindowsGLContext::getProcAddress: Unable to resolve 'glIsVertexArrayARB'
    QWindowsGLContext::getProcAddress: Unable to resolve 'glIsVertexArrayEXT'

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QT WebKit with WebGl not Working with Qt 5.2

    Looks like you do not have suitable OpenGL libraries present on your system.

Similar Threads

  1. Qtwebkit with webGL
    By Viraj Bhatt in forum Qt Programming
    Replies: 0
    Last Post: 13th February 2014, 06:04
  2. Replies: 1
    Last Post: 11th October 2013, 03:02
  3. HyperLinks Embedded /wrapped on Flash Files not working - QT Webkit
    By shailesh.astute in forum Qt Programming
    Replies: 1
    Last Post: 26th December 2012, 12:32
  4. Replies: 7
    Last Post: 24th September 2012, 07:17
  5. Replies: 4
    Last Post: 23rd September 2010, 15:20

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.