title: QT4: How to get access to an object what is on mainwidow from an other class?
body: <p>If Im in mainwindow.cpp then i can get every object on it with:</p>
  
  <pre><code>this-&gt;ui-&gt;textBox ...
  </code></pre>
  
  <p>What if there is another class (myclass2.cpp) and I would like to get the value of one the textBoxes. But they are on my mainwindow. I cant use this->ui->textBox</p>
  
  <p>Whats the way to get access to the objects?</p>
  
  <p>Thank You</p>