Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt Android 3 party Open GL integration
Forum Updated to NodeBB v4.3 + New Features

Qt Android 3 party Open GL integration

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 176 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.
  • B Offline
    B Offline
    Bappa
    wrote on last edited by
    #1

    I am trying to integrate a 3rd part OpenGL based application for my Qt Android project.
    We are using Qt 6.3.

    For this we are just creation a GL window and creation a context and making it current.
    As the 3rd party application will also run in same thread then it should get the same context.

    class GLWindow : public QWindow, protected QOpenGLFunctions

    GLWindow::GLWindow(std::string plug,QWindow *parent)
    : QWindow(parent),
    m_initialized(false),
    m_context(nullptr),
    m_timer(new QTimer(this))
    {
    setSurfaceType(QWindow::OpenGLSurface);
    m_plug = plug;
    connect(m_timer, &QTimer::timeout, this, &GLWindow::renderLater);
    }

    But currently with this I am getting black screen. Is there anything I am missing for GL window creation ?

    1 Reply Last reply
    0
    • F Offline
      F Offline
      florence023
      wrote on last edited by florence023
      #2
      This post is deleted!
      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