title: Simplest way to click a button with QTest
body: <p>Can somebody explain me the simplest way to click a button or something else like a QComboBox in a QTest?</p>
  
  <p>I tried this:</p>
  
  <pre><code>QComboBox *type = new QComboBox();
  type-&gt;addItem( "1" );
  type-&gt;addItem( "2" );
  type-&gt;addItem( "3" );
  type-&gt;addItem( "4" );
  
  QVBoxLayout *vLayout = new QVBoxLayout();
  vLayout-&gt;addWidget( type);
  
  QWidget *myWidget = new QWidget();
  myWidget-&gt;setLayout( vLayout );
  
  myWidget-&gt;show();
  
  while ( !myWidget-&gt;isVisible() ) {
   QTest::qWait(400);
  }
  
  const int positionXTypeBox = 70;
  const int positionYTypeBox = 25;
  
  QTest::mouseMove ( myWidget, QPoint( positionXTypeBox, positionYTypeBox ), -1 );
  QTest::qWait( 1500 );
  QTest::mouseClick( myWidget, Qt::LeftButton, Qt::NoModifier, QPoint( positionXTypeBox, positionYTypeBox ), 100 );
  </code></pre>
  
  <p>The mouse was exactly over the QComboBox-Widget but nothing happens when the mouse is clicked.</p>
  
  <p>Thanks.</p>