title: How to get access to another qt widget function?
body: <p>I am working on a Qt/Python program, which includes one QMainWindow, that also has two widgets (Let's call them Widget A and Widget B).</p>
  
  <p>I would like to get some value by running "someFunction()" which is arranged in Widget A from Widget B. So, I tried the following code in the constructor of Widget B:</p>
  
  <pre><code>self.someValue = self.parent().findChild(WidgetB).someFunction()
  </code></pre>
  
  <p>But it do not work at all. If I run this function in the constructor I do not even get any error or something.</p>
  
  <p>Could someone explain this behaviour? Or better, tell me how to run this function in another widget!?</p>
  
  <p>Thanks in advance!</p>