<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p></p>
<div>I have a Qt GUI called MainWindow.<br>
<br>
I am rendering some 3D objects in the constructor of the MainWindow.<br>
Moreover I declared a custom class of the <span>vtkInteractorStyleTrackballCamera</span> in "MainWindow.cpp" like in this example:<br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/MouseEvents" target="_blank" class="x_OWAAutoLink" id="LPlnk920112">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/MouseEvents</a><br>
<br>
Now I would like to call a function from the MainWindow class in the function "OnLeftButtonDown<span class="x_br0">(</span><span class="x_br0">)</span>" from my custom class of the Interactor.<br>
<br>
I tried to inherit the MainWindow class to the custom Interactor class like this:<br>
<br>
<span>class customMouseInteractorStyle : public vtkInteractorStyleTrackballCamera</span>, MainWindow<br>
<br>
But this doesn't work.<br>
<br>
<span>How can I access the functions of the MainWindow there?<br>
Thank you</span></div>
<br>
<p></p>
</div>
</body>
</html>