/** * @brief keyPressEvent * @param e */ void keyPressEvent( QKeyEvent* e ){ if(e->type() == QEvent::KeyPress) { if(e->key() == Qt::Key_Space) { window_gl->update(); window_gl->updateGL(); } } }
void GlyphEditor::update(){ GLWidget* glw = findChild<GLWidget*>("widget"); glw->updateGL(); QCheckBox* c = findChild<QCheckBox*>("updateBox"); if (c->checkState()==Qt::Checked) emit changed(); }
void MainWindow::on_actionPosterior_triggered() { GLWidget* glw = centralWidget()->findChild<GLWidget*>("widget"); glw->orient("p"); glw->updateGL(); }