What do you consider a "proper" font?
By proper font I mean the font I set on the TreeWidget or the TreeView.

The QItemdelegate::sizeHint() doesnt work same with QTreeWidget and QTreeView.
Yes, it doesnt for me. Well I meant the overrided sizeHint. What I did was I overrided sizeHint of my delegate. Say MyDelegate::sizeHint. I am using this delegate in 2 programs.

One MyTreeWidget/MyTreeWidgetItem (P1), and other modified version of Simple DOM(P2) Model. In P1 I set MyTreeWidget->setFont(myFont) after creating the tree. In P2 I did the same.
Now in P1 , in MyDelegate::sizeHint, I get the font from option.font as system default - MS Shell Dialog2(something like that ) . and in P2 , in MyDelegate::sizeHint, for option.font I get font as myFont. This is what I mean that sizeHint doesnt work same in both cases


As for Word wrap, did u try setting word wrap to true for QTreeView in simple DOM model example and shrink the window width ??

For sizeHintChanged() , I will surely try.
But its gonna fail. In MyDelegate::sizeHint() function, i get option.rect.width() as -1. This is set in QTreeView::indexRowSizeHint() function for some hack
You can verify from the QTreeView::indexRowSizeHint() function.