How to set QTableView width to width of horizontal header?

Printable View