title: Change checkbox position for a QCheckBox
body: <p>I have a QCheckbox in a grid layout defined as such:</p>
  
  <pre><code>self.isSubfactorCheckbox = QtGui.QCheckBox('Is &amp;subfactor', self)
  </code></pre>
  
  <p>By default the checkbox is to the left of the "Is subfactor" text. I wish to move it to the right of the text.</p>
  
  <p>I've tried playing around with subcontrol-position but to no avail.</p>
  
  <pre><code>self.isSubfactorCheckbox.setStyleSheet('QCheckBox::indicator{subcontrol-origin: content; subcontrol-position: top right;}')
  </code></pre>
  
  <p>This moves the checkbox to the right (it's still on the left of the text) but it pushes the text to the right and out of the window's edge.</p>
  
  <p>This didn't help to move the text to the right:</p>
  
  <pre><code>self.isSubfactorCheckbox.setStyleSheet('QCheckBox::text{subcontrol-origin: content; subcontrol-position: top left; }')
  </code></pre>
  
  <p>A solution would be creating a QLabel and adding the checkbox on its right but I don't haven't found a way to underline letters in a QLabel so that the user will know which is the shortcut key. I've tried prefixing letters with &amp; or wrapping them in <code>&lt;u&gt; &lt;/u&gt;</code> tags.</p>
  
  <p>I'd still prefer to use only a QLabel, but how would I switch the checkbox to the right of the text without the text getting pushed out.</p>