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 with OpenGL
Forum Updated to NodeBB v4.3 + New Features

QtWebKit with OpenGL

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

    Hi,

    I have an Qt/E with Webkit working on ARM platform. I have a Graphics plugin (QScreenDriverPlugin) which enables 2D display. I have used QtTestBrowser to validate.

    I also have OpenGL ES2, which is working with Demo QT OpenGL applications. We are using Simplegl plugin for getting the EGL context.

    I want to run the same QtTestBrowser with OpenGL. That means I would like to discard Raster display and instead display every thing using EGL Screen context. To do this:

    1. Do we have any thing which is already available (I tried with -graphicsbased option, which i didnt succeed)
    2. Should we do some modifications to get it working. Do we have any reference modifications?

    Regards,
    Hari

    Hari

    1 Reply Last reply
    0
    • P Offline
      P Offline
      pacanek
      wrote on last edited by
      #2

      You can change painter to QGLFramebufferObject and then render using it.

      QGLFramebufferObject *fbo = new QGLFramebufferObject();
      QPainter painter( fbo);

      Then you would probably need to add it to QGLWidget.
      That's my first idea.

      or try:

      QGraphicsScene scene;
      QGraphicsView view(&scene);
      QGLWidget viewport(&view);
      view.setViewport(&viewport);
      QGraphicsWebView wdg;
      scene.addWidget(&wdg);
      view.show();

      I don't know will it help you but these are my first shoots.

      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