Results 1 to 2 of 2

Thread: QGraphicsView Behavior

  1. #1
    Join Date
    Oct 2008
    Posts
    37
    Thanked 2 Times in 2 Posts

    Default QGraphicsView Behavior

    Hi,

    ...a couple questions regard QGraphicsView..

    1) Is there a way to completely disable the effect of the scrollbars in QGraphicsView? I have set the policy so that the scrollbars to never. However when I pan the content, it seems that the to still behave as if they scrollbars were there.

    2) Related to 1 - is it possible to allow pan so that the viewport/scene isn't bounded to the contents? For instance, I have an image and I'd like to center on one of the corners.

    Thanks.

  2. #2
    Join Date
    Oct 2008
    Posts
    37
    Thanked 2 Times in 2 Posts

    Default Re: QGraphicsView Behavior

    Nevermind, QGraphicsScene::setSceneRect got me what I needed.

Similar Threads

  1. Replies: 1
    Last Post: 16th September 2009, 11:23
  2. QGraphicsView and adding QWidget with transparent areas
    By sting73 in forum Qt Programming
    Replies: 2
    Last Post: 28th April 2009, 11:19
  3. Replies: 0
    Last Post: 5th March 2009, 06:54
  4. strange QGraphicsView sizing behavior
    By tpf80 in forum Qt Programming
    Replies: 3
    Last Post: 1st February 2009, 20:04
  5. QGraphicsView and embeded widgets
    By bunjee in forum Qt Programming
    Replies: 10
    Last Post: 12th October 2008, 07:43

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.