Qt Code:
  1. private:
  2. QDirModel model;
To copy to clipboard, switch view to plain text mode 
Thats how I put it in my class.