title: Passing variable to promoted QWidget
body: <p>I have two classes:</p>
  
  <p>-MainWindow</p>
  
  <p>-MyWidget which is promoted in MainWindow.ui using QT Creator's design tab.
  Both of the class .ui's are designed in design tab.</p>
  
  <p>I try to pass variables to MyWidget from MainWindow without any success. Compiler doesn't give any errors, but variables are not passing. Is there any way to do this? MyWidget works well as long as I don't import MainWindow to it or import MyWidget to MainWindow. After import I can't control MyWidget's content by code. Any suggestions?</p>
  
  <p>EDIT: Made a small example and added code to pastebin, so this post won't get bloated.</p>
  
  <p><a href="http://pastebin.com/pt9Rd1tE" rel="nofollow">MainWindow.h</a></p>
  
  <p><a href="http://pastebin.com/atHv6JaS" rel="nofollow">MainWindow.cpp</a></p>
  
  <p>another links are in comments</p>