Results 1 to 5 of 5

Thread: QGraphicsView scroll bars disappears

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: QGraphicsView scroll bars disappears

    Try not to set the scene rect by using the view. Only use QGraphicsScene::setSceneRect(). And did you draw the arrows outside the bounding rect of the items?

  2. #2
    Join Date
    Apr 2009
    Location
    Valencia (Spain)
    Posts
    245
    Qt products
    Qt4
    Platforms
    Symbian S60
    Thanks
    38
    Thanked 19 Times in 19 Posts

    Default Re: QGraphicsView scroll bars disappears

    Try not to set the scene rect by using the view
    I'm trying with both, and with both at the same time as well and it's the same.


    And did you draw the arrows outside the bounding rect of the items?
    Yes, actually I can even move them. I can also create, by code, new items outside the viewport but only access to them if I resize the view manually.

    Is it, for any chance, the expected behavior?

  3. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: QGraphicsView scroll bars disappears

    Quote Originally Posted by jano_alex_es View Post
    Yes, actually I can even move them. I can also create, by code, new items outside the viewport but only access to them if I resize the view manually.
    You didn't get me right. Did you draw the arrows yourself in the paint method of a subclassed item? If so, make sure, you respect the bounding rect of that item, that you don't draw outside.

    Anyway, can you make a minimal compilable example reproducing your problem.

Similar Threads

  1. scroll bars are not appearing
    By Cruz in forum Qt Programming
    Replies: 4
    Last Post: 10th September 2010, 18:26
  2. Replies: 0
    Last Post: 19th November 2009, 19:19
  3. Enabling scroll bars in disabled QTableView
    By Koas in forum Qt Programming
    Replies: 2
    Last Post: 9th October 2009, 11:39
  4. Replies: 1
    Last Post: 11th June 2009, 06:49
  5. QScrollArea's Scroll Bars
    By ToddAtWSU in forum Qt Programming
    Replies: 5
    Last Post: 19th September 2006, 14:27

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.