What is the meaning of the
GLWidget::GLWidget(Helper *helper, QWidget *parent)
: QGLWidget(QGLFormat(QGL::SampleBuffers), parent), helper(helper)
elapsed = 0;
elapsed = (elapsed + qobject_cast<QTimer*>(sender())->interval()) % 1000;
void GLWidget::paintEvent(QPaintEvent *event)
helper->paint(&painter, event, elapsed);
Despite the common misconception, this is qdoc syntax, not doxygen. This comment is for documentation purposes in the Qt Project to mark example snippets to be rendered so. It is not really documented well, but here you can find the corresponding code that implements this feature.
As an end user of Qt, you do not need to deal with it too much unless you start contributing to the Qt Project itself or you are trying to reuse qdoc for your own project, which would be admittedly odd at this point.