Hi,

this is not a question, but something I want to share. I was looking for a way to place an icon right of the button text. This is useful for navigating datasets (first, prev, next, last).



The easy way to do it, is to use QWidget::setLayoutDirection. So for the three buttons on the right you just need to do:

Qt Code:
  1. ...
  2. pushButtonNext->setLayoutDirection(Qt::RightToLeft);
  3. pushButtonLast->setLayoutDirection(Qt::RightToLeft);
  4. pushButtonNextIssue->setLayoutDirection(Qt::RightToLeft);
  5. ...
To copy to clipboard, switch view to plain text mode 

Have fun!