C++ (Qt)printf("1: GL error %d\n", glGetError());glBegin(GL_LINES);glVertex3f(0, 0, 0);glVertex3f(1, 1, 1);printf("2: GL error %d\n", glGetError());glEnd();printf("3: GL error %d\n", glGetError());
C++ (Qt)qDebug() << "win" << this << "parent" << parentWidget() << "global" << e->globalPos() << "local" << e->pos(); qDebug() << "frameGeometry" << frameGeometry() << "mapFromGlobal" << mapFromGlobal(e->globalPos());