There is also this one stupid possibility:

Qt Code:
  1. namespace UI {
  2. class Ui_xyz;
  3. };
To copy to clipboard, switch view to plain text mode 

or even this one (which can be autogenerated using some simple script):

Qt Code:
  1. namespace UI {
  2. class xyz : public Ui::xyz {};
  3. }
To copy to clipboard, switch view to plain text mode