title: Qt Tab rename when double clicked
body: <p>i am using visual Studio with Qt.
  i do not have access to Qt designer. its all done through coding (C++);</p>
  
  <p>i have an opensource software called easypaint.</p>
  
  <p>i got stuck at trying to rename tabs. I want to be able to rename tabs when user double clicks on the tab itself.</p>
  
  <p>i created a new function to filter the doubleClick event :</p>
  
  <pre><code> bool MainWindow::eventFilter(QObject *obj, QEvent *event)
   `enter code here`{
       if (event-&gt;type() == QEvent::MouseButtonDblClick) {
           return true;
       } else {
           // standard event processing
           return QObject::eventFilter(obj, event);
       }
   }
  </code></pre>
  
  <p>then i added this line to a function that initializes the TabWidget:</p>
  
  <pre><code>installEventFilter(mTabWidget);
  </code></pre>
  
  <p>can anyone please guide me through this.
  Thank you</p>