Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QOpenGLWidget and glDebugMessageCallback
Forum Updated to NodeBB v4.3 + New Features

QOpenGLWidget and glDebugMessageCallback

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 562 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.
  • qtyetiQ Offline
    qtyetiQ Offline
    qtyeti
    wrote on last edited by
    #1

    Hi,

    since a few days I#m working on a Qt OpenGL program. It's working fine so far (I'm using QOpenGLWidget in Qt 5.12).
    Now I added some code for OpenGL debugging and for some reason I get this error message:

    D:\Daten\Develop\Qt\Test\OpenGL1\newglwidget.cpp:128: Fehler: use of undeclared identifier 'glDebugMessageCallback'
    

    I already added this include-files, but still no luck...

    #include <QOpenGLExtraFunctions>
    #include <QOpenGLFunctions_4_5_Core>
    #include <qopenglfunctions_4_5_compatibility.h>
    

    My graphic card supports OpenGL 4.5, so this shouldn't be the issue...

    Any Ideas?

    Thanks in advance,
    Peter

    1 Reply Last reply
    0
    • qtyetiQ Offline
      qtyetiQ Offline
      qtyeti
      wrote on last edited by
      #2

      Hi,

      fixed it (in fact some days ago already):

         QOpenGLFunctions_4_5_Core *f;
      .
      .
          f = QOpenGLContext::currentContext()->versionFunctions<QOpenGLFunctions_4_5_Core>();
      
      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