QOpenglWidget - Complete Example
-
Hi and welcome to devnet,
Do you mean put a QOpenGLWidget in a QDialog ?
-
Hi and welcome to devnet,
Do you mean put a QOpenGLWidget in a QDialog ?
-
As silly as it may sound, just use the usual technique, put it in a layout in your QDialog like you would for e.g. a QLineEdit
-
Hi and welcome to devnet,
Do you mean put a QOpenGLWidget in a QDialog ?
-
The dialog itself boils down to:
MyDialog::MyDialog(QWidget *parent): :QDialog(parent) ,myGLWidget(new MyGLWidget) { QVBoxLayout *layout = new QVBoxLyout(this); layout->add(myGLWidget); }