C++ (Qt)counter = new QLabel(this);counter->show();
void OgreWidget::closeEvent(QCloseEvent *e) { if(e != NULL) { counter->close(); } e->accept();}
if(e != NULL) { counter->close(); } e->accept();
counter = new QLabel();counter->show();
counter = new QLabel(this);counter->show();
C++ (Qt)void GlWidget::closeEvent(QCloseEvent *ce) { if(ce != NULL) { groupBox->close(); }}
delete label; delete groupBox;