Results 1 to 6 of 6

Thread: How to Disable Scroll Bar of QGraphicsView (or QWidget) ??

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2009
    Location
    Surrey, BC, Canada
    Posts
    110
    Thanks
    1
    Thanked 2 Times in 1 Post
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default How to Disable Scroll Bar of QGraphicsView (or QWidget) ??

    Hi, all:

    I successfully load an image in QGraphicsView.
    However, I'd love to show it without scrolling bar because I can ensure the size of the image is just equal to the size of the Widget view (I'm using the widget QGraphicsView).

    But, it seems whenever I tried to load an image, the scroll bar will automatically jump out to show "I(the scroll bar )'m here". How can I disable this scroll bar?

    BTW:
    An image is attached and the red curves show the scroll bar which is not what I expected.
    Before I load an image (or image sequence), there is no such kind of bar.



    Best Regards
    JIA Pei
    Attached Images Attached Images
    Last edited by jiapei100; 20th June 2010 at 11:57.
    Welcome to Vision Open
    http://www.visionopen.com

Similar Threads

  1. Replies: 0
    Last Post: 19th November 2009, 18:19
  2. How to disable vertical scroll bar in QTableWidget
    By grsandeep85 in forum Qt Programming
    Replies: 2
    Last Post: 14th October 2009, 11:07
  3. QGraphicsView without scroll bar
    By sanjayshelke in forum Qt Programming
    Replies: 4
    Last Post: 20th July 2009, 12:17
  4. Replies: 1
    Last Post: 11th June 2009, 05:49
  5. QGraphicsView : scroll on drag
    By kghose in forum Qt Programming
    Replies: 4
    Last Post: 14th August 2008, 21:50

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
  •  
Qt is a trademark of The Qt Company.