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. Qt OpenGL: Assertion Failed When Closing Window
Forum Updated to NodeBB v4.3 + New Features

Qt OpenGL: Assertion Failed When Closing Window

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 2.1k 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.
  • SeishinS Offline
    SeishinS Offline
    Seishin
    wrote on last edited by
    #1

    Hi,

    I'm writing a graphics program in Qt with OpenGL. When I try to close the program, there is a debug error says:

    bq. Program: [directory of my program]
    Module: 4.7.2
    File: global\qglobal.cpp
    Line: 2262
    ASSERT: "group->context() == q_ptr" in file .\qgl.cpp, line 1657

    This error even occurs when I just close the example program (chap20\tetrahedron) of book "C++ GUI Programming with Qt 4, Second Edition".
    I'm using VS 2010 on Win 7 64bit, could anyone help me on this? Thanks.

    1 Reply Last reply
    0
    • F Offline
      F Offline
      FreddyTheStony
      wrote on last edited by
      #2

      Hi,

      as mentioned "here":http://www.qtcentre.org/threads/50560-Qt-OpenGL-Assertion-Failed-When-Close-the-Window it has something to do with the format set in the constructor. When I remove it, the program doesn't crash anymore but it only shows the legend and the background. So this doesn't really fix the problem...

      @
      OpenGlViewer::OpenGlViewer(QWidget *parent): QGLWidget(parent)
      {
      this->setFormat(QGLFormat(QGL::SampleBuffers));
      }
      @

      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