To copy to clipboard, switch view to plain text mode
Where am I going wrong? No matter how I try, the header is always a "1".
setHeaderData has a fourth argument which is role. By default it is Qt::EditRole. You should pass Qt:: DisplayRole because this the role used to display your header.
Bookmarks