title: QPushButton with menu - drop from right side
body: <p>I have a long <code>QPushButton</code> (well, a subclass of one) with a menu attached. The drop-down menu indicator is on the right side of the button, but when pressed the menu drops down from the bottom-left corner. This seems to me like it will be clunky and unintuitive for my users.</p>
  
  <p><img src="https://i.stack.imgur.com/NZOgw.png" alt="Left-side drop down menu"></p>
  
  <p>I've looked through the <code>QPushButton</code> source code, and tried:</p>
  
  <pre><code>this-&gt;setLayoutDirection(Qt::RightToLeft);
  </code></pre>
  
  <p>which did move the menu to the right side, but it broke the button as it also moved the indicator to the left side and made the menus backwards.</p>
  
  <p><img src="https://i.stack.imgur.com/yJcL6.png" alt="enter image description here"></p>
  
  <p>Is there another way to make the menu drop from the right side?</p>