Thanks - I did try that (vbar->maximum()) but strangely the value seemed short of what it should be. If I set the minimum height of the tree view that contained 1000's of items to this value, I would still get a scroll bar. It seemed to be a few hundred pixels off.

For the moment, I'm doing it by multiplying the number of items by the height of each item (i'm using a delegate so I know the heights), which seems to work perfectly.

I will revisit using the vbar maximum value in case I missed something.

Many thanks for your help,

Mark.