[Interest] QTreeView width with scroll bar

Alex Strickland sscc at mweb.co.za
Thu Nov 8 11:26:45 CET 2012


On 2012/11/08 12:07 PM, Tony Rietwyk wrote:

> Instead of width() - scrollBarWidth, I suggest to use viewport()->width(),
> which should already exclude the vertical scroll bar.

Works like a charm. Thank you.

-- 
Regards
Alex



More information about the Interest mailing list