I'm using a QTableView and I supply headerData but the headers do not appear. The option is checked in ui editor and QHeaderView is defined. Why don't they appear?

Also, why is there a white box next to some of my data items? Can I change its contents?