how to call a function to refresh GUI
<p>I am refactoring some code to decouple GUI from some state.  </p>

<pre><code>#include &lt;StateObject&gt;

Class GUI{  
 ...  
 StateObject A;
 void doSomething() { A-&gt;hullaballoo();}  

 **void ReFreshMyGui() { //take state A and redraw }**  
 };  
</code></pre>

<p>State object is being shared by multiple classes to update the state but this Gui Object specializes in displaying the state. So I would like to call the Refresh function via StateObject whenever its modified.</p>

<p>I am not sure how or if signals will provide the solution. Any hints?</p>
