[Interest] QTreeView width with scroll bar

Alex Strickland sscc at mweb.co.za
Thu Nov 8 08:23:04 CET 2012


Hi

I have a QTreeView with a couple of check boxes on the right hand side. 
I use resizeEvent to make sure that the check boxes are kept on the 
right by using width() and columnWidth() to get the first column to the 
correct width to make everything fit.

However, when the QTreeView gets long enough to automatically add a 
scroll bar - my calculations don't work and one of the check box columns 
is obscured by the scrollbar. How can I check if the scroll bar is 
activated and, if so, obtain it's width to factor into my calculation?

-- 
Regards
Alex



More information about the Interest mailing list