Hi,
I want to do spread a tree view item to the entire possible width like this:
int ContentItem::getItemWidth() const
{
return getOwnerView()->getWidth() - getItemPosition(true)->getX();
}
However, while being added, the TreeViewItem::addSubItem calls getItemWidth(), which uses getItemPosition which is not set yet.
This lead to the first width being whatever the compiler decides to put in the initial width/itemWidth member.
I’m probably wrong computing the item width, but then I think a getOwnerBorderWidth() would be welcome.