guilugi:
Thanks. I tried it but I cannot move the window around or resize it. I did the following in my main.cpp. (I added the test widget which is just a simple wrapper around a QGLWidget to give the window a body. Even without it, it didn't work):
dockWidget
->setGeometry
(QRect(40,
30,
120,
80));
GLTestWidget *glWidget = new GLTestWidget();
dockWidget->setWidget(glWidget);
QDockWidget *dockWidget;
dockWidget = new QDockWidget(ui.frame);
dockWidget->setGeometry(QRect(40, 30, 120, 80));
dockWidget->setFeatures( QDockWidget::DockWidgetMovable | QDockWidget::DockWidgetClosable);
GLTestWidget *glWidget = new GLTestWidget();
dockWidget->setWidget(glWidget);
To copy to clipboard, switch view to plain text mode
merlvingian:
Thanks for the reference to QWorkspace. I'm looking at it now but I am not sure I understand the relationship between it and QMdiXXX widgets
-- Nisha
Bookmarks