title: PySide Qt4 - Qtabwidget - Disable drag and drop of a single q tab widget
body: <p>I have a <a href="https://srinikom.github.io/pyside-docs/PySide/QtGui/QTabWidget" rel="nofollow">qtabwidget</a> with one or more tabs in it at any given time.
  I would like the user to be able to rearrange the second through last tab in any order, but the first tab to remain at index 0. </p>
  
  <p>From everything I've found, there is no way to enable <a href="https://srinikom.github.io/pyside-docs/PySide/QtGui/QTabWidget.html#PySide.QtGui.PySide.QtGui.QTabWidget.setMovable" rel="nofollow">setMovable</a> independently for each tab. </p>
  
  <p>The best workaround I've come up with thus far is to simply move the first tab back to position 0 if the user moves it (or another tab in front of it). This obviously isn't ideal, but it would be acceptable if it worked correctly... It works for a short while, however it occasionally crashed the application (It appears to happen when user drags a tab before it and holds the mouse there, so its in a constant loop of trying to rearrange and something low level crashes)</p>
  
  <p>Any other suggestions on a feasible workaround (either to this method, or a similar widget where this capability would be easier to implement)? I figure its probably possible to re-class the QTabWidget in a way that it would ignore mouse drags on the first tab, but I'm not sure how I could go about preventing another tab from being moved before it... </p>