You are shadowing your member pointer.
There is no need to redeclare it:
Qt Code:
  1. delete tableView;
  2. /*QTableView * */ tableView = dmgr->customerTableView();
To copy to clipboard, switch view to plain text mode