A code portion I could not understand


#ifndef GLVIEWER_H
#define GLVIEWER_H
#include "globaldefinitions.h"
#include <QGLWidget>
#include <QList>
#include <QPair>
#include <QMatrix4x4>

//!OpenGL based display of the 3d model
class GLViewer : public QGLWidget {
Q_OBJECT [THIS IS THE PART THAT I DON'T UNDERSTAND]

public:
GLViewer(QWidget *parent = 0);
~GLViewer();


WHAT DOES THAT Q_OBJECT DO ? it doesn't look like a variable, object anything for that matter ??


~Neeraj
it's a macro. The only way to know what it is is to look at the macro definition or read the documentation.
Topic archived. No new replies allowed.