PDA

View Full Version : how to set header ?



mimmo_kallon
2nd April 2008, 10:40
hi, i have a QAbstractItemView and I have to set headers properties, resizing the columns to fit the content, or to have a fixed dimension, or to hide the vertical header. With other Views classes i haven't problem, but how can I do what I want with this QAbstractItemView class? i have no idea..... :confused:

thanks in advance.

jpn
2nd April 2008, 12:56
QAbstractItemView is the abstract base class of all views. It has no headers. Both QTreeView and QTableView inherit from QAbstractItemView and they do have headers.