PDA

View Full Version : qGraphicsView scrollbars not getting smaller



danbelsey
1st August 2011, 16:43
Edit: Never mind! Found it with a bit more thorough googling, here: http://www.qtcentre.org/threads/22372-QGraphicsScene-Scrollbar-resizing

Ahoy all,

I've inherited a project that uses a fixed size qgraphicsview - it's too small (intentionally) to display all the items, but when the program reduces the width of the scene that needs to be displayed, the scrollbar doesn't get any smaller (i.e. it always stays at the biggest size it's been at). Is there a method to recompute this? I can't find one in the docs, or at least one that I can call without knowing the scene width already (if I need to calculate this I will, but if it can already calculate the largest scene...)

Cheers in advance!