Qt Code:
  1. menubar->setLayoutDirection(Qt::RightToLeft);
To copy to clipboard, switch view to plain text mode