title: How to set current tab of QTabWidget by name?
body: <p>PyQt5's <code>QTabWidget</code> has a method <code>setCurrentIndex</code> that you can use to get a particular tab to become the active tab. I can't seem to find any way to index by tab name though (which I set in Qt Designer). Is there any way (either direct or indirect) to index by name instead?</p>
  
  <p><a href="http://doc.qt.io/qt-5/qtabwidget.html#currentIndex-prop" rel="noreferrer">http://doc.qt.io/qt-5/qtabwidget.html#currentIndex-prop</a></p>