Thanks I had missed the

Qt Code:
  1. ui->setupUi(this);
To copy to clipboard, switch view to plain text mode 

above.

In my other app its

Qt Code:
  1. setupUi(this);
To copy to clipboard, switch view to plain text mode 

Works.