title: Qtest access to ui member
body: <p>I need to simulate mouse click on UI button using QTest but I can't figure out how to access it.</p>
  
  <p>I've got a <code>MediaPanel</code> class :</p>
  
  <pre><code>class PhMediaPanel : public QWidget
  {
      Q_OBJECT
  
  public:
      explicit PhMediaPanel(QWidget *parent = 0);
      //... a lot of functions
  private:
      Ui::PhMediaPanel *ui;
  
  };
  </code></pre>
  
  <p>And a MediaPanelTest :</p>
  
  <pre><code>#include "MediaPanelTest.h"
  #include &lt;QObject&gt;
  
  class MediaPanelTest : public QObject
  {
      Q_OBJECT
  public:
      explicit MediaPanelTest(QObject *parent = 0);
  
  private slots:
      //The tests
  };
  </code></pre>
  
  <p>So how can I simulate button click on <code>Ui::PhMediaPanel *ui</code> member?</p>