Change setResizeMode -> setSectionResizeMode for qt > 5