Hello everyone,
I'm trying to add a QGLWidget inside a QMainWindow, after the first "show()".
The code looks like that :
_ui.setupUi(_window);
createActions();
_window->show();
_window = new QMainWindow;
_ui.setupUi(_window);
createActions();
_window->show();
To copy to clipboard, switch view to plain text mode
and inside a slot (when I push a button) :
myGLWidget *glwidget=new myGLWidget(_ui.centralwidget);
glwidget
->setGeometry
(QRect(20,
200,
660,
680));
myGLWidget *glwidget=new myGLWidget(_ui.centralwidget);
glwidget->setGeometry(QRect(20, 200, 660, 680));
To copy to clipboard, switch view to plain text mode
when, I put the myGLWidget before _window->show(), the widget is displayed, but, when inside the slot, it is like nothing appened...
-> Is there a method (show, refresh, update.. ?) to force my QGLWidget to show itself?
Cyrille
Bookmarks