[osg-users] Qt5 QMdiArea

Vincent Majorczyk vingt.sens at hotmail.fr
Sun Aug 16 01:35:38 PDT 2015


Hi,

I have tried to integrate the ViewerWidget (provided in the example 'osgviewerQt') to a QMdiArea, but this doesn't work. When the application start, I have empty 3D widgets. Nevertheless, popup windows works.


Code:
ViewerWidget* viewWidget = new ViewerWidget;
viewWidget->createWindow();

QMdiArea *area = new QMdiArea;
area->addSubWindow(viewWidget);

QMainWindow *m = new QMainWindow;
m->setCentralWidget(area);
m->show();




I have modified the original implementation (class splitted to 'h'/'cpp' files; and construction of the widget in a method 'createWindow()'), nevertheless if I put viewWidget in the QMainWindows instead of the QMdiArea, there is no problem.

I would like know if you have a solution to use QMdiArea.
Thank you.

Cheers,
Vincent[/code]

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=64788#64788








More information about the osg-users mailing list