Results 1 to 1 of 1

Thread: qGraphicsView scrollbars not getting smaller

  1. #1
    Join Date
    Aug 2011
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default qGraphicsView scrollbars not getting smaller

    Edit: Never mind! Found it with a bit more thorough googling, here: http://www.qtcentre.org/threads/2237...llbar-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!
    Last edited by danbelsey; 1st August 2011 at 17:49.

Similar Threads

  1. scrollbars and qgraphicsview
    By captiva in forum Qt Programming
    Replies: 13
    Last Post: 20th February 2009, 13:00
  2. scrollbars in MaximumSize QGraphicsView
    By captiva in forum Newbie
    Replies: 0
    Last Post: 17th February 2009, 10:24
  3. QGraphicsView, unmanaged artifact with scrollbars
    By philw in forum Qt Programming
    Replies: 1
    Last Post: 26th December 2008, 03:58
  4. QGraphicsView and scrollbars
    By godmodder in forum Qt Programming
    Replies: 1
    Last Post: 29th March 2008, 23:34
  5. QEvent for QGraphicsView scrollbars?
    By forrestfsu in forum Qt Programming
    Replies: 9
    Last Post: 2nd December 2006, 08:42

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.