title: Show a button after main window opens
body: <p>How do you show a button 10 seconds right after the main window open?</p>
  
  <p>I am using the showevent but it stucks if I do the 10 second count inside it:</p>
  
  <pre><code>void main::showEvent(QShowEvent *event)
  {
     QWidget::showEvent( event );
     QTimer timer;
      timer.start(10000);
  
      while(timer.remainingTime() &gt; 0)
      {
         qDebug() &lt;&lt; timer.remainingTime();
          if(timer.remainingTime() &lt;= 0)
          {
              _ui-&gt;btn_CloseAd-&gt;show();
              timer.stop();
          }
      }
  }
  </code></pre>
  
  <p>What would be the solution for this?</p>