Ok, I'll probably don't fully understand your objectives.
But why do you use the parent widget's width and not that of the treeview itself?

Cheers,
_