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. Qtwebkit webgl
QtWS25 Last Chance

Qtwebkit webgl

Scheduled Pinned Locked Moved Qt WebKit
2 Posts 2 Posters 4.8k Views
  • 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.
  • S Offline
    S Offline
    spirodonfl
    wrote on last edited by
    #1

    So I feel pretty stupid but...

    How do you enable webgl using webkitview?

    I downloaded the QT creator OpenGL version, installed it, created a new HTML5 project, left it basic, ran fine. Added some simple JS code to check for webgl:
    if (!window.WebGLRenderingContext) {
    alert('No GL');
    return; }

                gl = canvas.getContext("webgl");   if (!gl) {
                    alert('GL Not Working');
                return;
                }
    

    No GL returned.

    Thought to myself there's something wrong so I copied and pasted webgl code from a website I know works on my Chrome browser, a simple wireframe cube, doesn't run.

    Added opengl to the config as I read somewhere that you have to have it enabled in the project, nothing.

    What am I missing?

    1 Reply Last reply
    0
    • N Offline
      N Offline
      nvharisha
      wrote on last edited by
      #2

      Check the thread:

      https://qt-project.org/forums/viewthread/23323/

      Hari

      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