+ switch off mouse propagation of OpenGL widget
This commit is contained in:
parent
f70f74c26d
commit
2db31c97ec
|
@ -123,6 +123,9 @@ View3DInventor::View3DInventor(Gui::Document* pcDocument, QWidget* parent, Qt::W
|
|||
#endif
|
||||
_viewer->setDocument(this->_pcDocument);
|
||||
stack->addWidget(_viewer->getWidget());
|
||||
// http://forum.freecadweb.org/viewtopic.php?f=3&t=6055&sid=150ed90cbefba50f1e2ad4b4e6684eba
|
||||
// By default, the wheel events are processed by the 3d view AND the mdi area.
|
||||
_viewer->getGLWidget()->setAttribute(Qt::WA_NoMousePropagation);
|
||||
setCentralWidget(stack);
|
||||
#else
|
||||
_viewer = new View3DInventorViewer(this);
|
||||
|
|
Loading…
Reference in New Issue
Block a user