Results 1 to 1 of 1

Thread: QGraphicsView scroll bar problem (Solved)

  1. #1
    Join Date
    Nov 2009
    Posts
    3
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default QGraphicsView scroll bar problem (Solved)

    Hi,

    I add many QPixmaps to my QGraphicsScene after I show my dialog with the QGraphicsView in it.

    I set the scene on the graphics view in the constructor and add the pixmaps at a button press at a later time...

    This seems to redraw the graphics view ok, but the graphics view scroll bars just "appear" when I put the mouse over the graphics view like they have only just been forced to draw? This happens even if i call repaint() on graphics view.

    And if i set scrollbars to always be on then they still do not seem to draw as the size changes when I put mouse over it.

    Edit: This can be closed now, I solved the problem

    The problem was that I did not call setSceneRect()
    Last edited by paulz; 19th November 2009 at 19:05.

Similar Threads

  1. QGraphicsView setRenderHints() problem
    By roshlame in forum Qt Programming
    Replies: 0
    Last Post: 3rd December 2008, 18:42
  2. Custom Scroll Widget Sizing Problem
    By sepehr in forum Qt Programming
    Replies: 2
    Last Post: 28th November 2008, 11:42
  3. fitInView problem at QGraphicsView
    By oguzy in forum Qt Programming
    Replies: 1
    Last Post: 20th November 2008, 23:36
  4. Replies: 16
    Last Post: 7th March 2006, 15:57
  5. Problem with QScrollArea updating from 4.0.1 to 4.1.0
    By SkripT in forum Qt Programming
    Replies: 8
    Last Post: 28th January 2006, 22:35

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.