Qt Code:
view->header()->sectionSize( colIndex )To copy to clipboard, switch view to plain text mode
is a similar way to find the size of the column.
The problem is that other than the size of the column I need to know the width needed by the item to be drawn in such column.
The width needed by the cell in the first column of an item is determined by:
- The Text size (known)
- The Pixmap size (known)
- The size of the decorator of the QCheckListItem (unknown)
- The size of the box of the QCheckListItem (unknown)
- The indentation of the QChecklist item (if the item is child of other items the first column is indented) (unknown)
I do not know how to compute the size of the unknown elements
Bookmarks