Hi everyone:
I am new in QT, and I have met a problem that when a QToolButton with sub-menu and menu-button is styled with border in QSS, QT will paint the text and icon in the middle of the whole button (the repaint rect includes the menu-button), For example, I set the stylesheet like this:

Qt Code:
  1. {
  2. border: 2px solid;
  3. background-color: red;
  4. }
  6. QToolButton::menu-button:hover
  7. {
  8. border: 2px solid green;
  9. background-color: red;
  10. }
To copy to clipboard, switch view to plain text mode 

and when you hovering the QToolButton, the text and icon will move to the middle of the whole button instead of the left part, but if border is set to be "none", it works well

I don't know if I have styled the QToolButton in the right way,
so, is there a solution to this? or how can I get a buttons with down-menu just like those in MS office 2007 ?