Hello,

I tried on a windows OS, and the only thing i had to change so it works is the parent object you give to the constructor:
i would use
Qt Code:
  1. new QMenuBar(this);
To copy to clipboard, switch view to plain text mode 
rather than
Qt Code:
  1. new QMenuBar(0);
To copy to clipboard, switch view to plain text mode 

But maybe there is a subtility i didnt get
Hope it helps ^^
Pierre.