When creating an application with QUI using the Wizard of Qt Creator it creates a class for the window, similar to this:
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
};
#endif // MAINWINDOW_H
My question is: the code that appears at the beginning of the class, more precisely Q_OBJECT
, What is this ?, What is it for me or what does it do ?.