<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 class="post-text" itemprop="text">
<p>All my vtk related code is in the constructor function of a Qt GUI. There I can change a property of a VTK actor like this:</p>
<blockquote>
<p>actor->GetProperty()->SetColor(0, 0, 0.15);</p>
</blockquote>
<p>But I want to change this proberty in a callback function from a button. </p>
<blockquote>
<p>void MainWindow::button_click() { actor->GetProperty()->SetColor(0,0, 0.15); }</p>
</blockquote>
<p>Of course "actor" is not defined there. What can I do to acess "actor" in this callback function?</p>
<p>(Sry I am an OOP beginner) </p>
</div>
<br>
<p></p>
</div>
</body>
</html>