Could someone please explain the difference. I am trying to build a simple opencascade application using qt. Now I don't want anything fancy, just to click a menu item which
opens up a new window. In this window the standard tutorial 3d bottle is to be displayed.
So I have created a main window which just sets up the menus and actions but also sets up
the graphics driver in its constructor with the following line of code:
when the menu item is triggered I call the create new window function:
this function should create a new window and display the bottle. Now here is the implementation:
//Create the bottle and convert it to AIS_Shape
Handle(AIS_Shape) AISBottle=new AIS_Shape(aBottle);
TCollection_ExtendedString aNameOfViewer ("Visu3D");
Handle(V3d_Viewer) aViewer = new V3d_Viewer (m_GraphicDriver, aNameOfViewer.ToExtString());
qDebug() Handle(AIS_InteractiveContext) aContext;
qDebug() aContext = new AIS_InteractiveContext(aViewer);
aContext -> Display(AISBottle);
This is ok, and executes fine but there is no window showing up. How can I setup an MDI area
and place widget inside which shows all the 3D stuff?