[Qt-interest] Unable to bring Scrollbar Properties in MDI subwindow of type QGraphicsView

Tony Rietwyk tony.rietwyk at rightsoft.com.au
Thu May 7 02:52:05 CEST 2009


Hi Kamakshi, 

> I am painting in the GraphicsView and that painting is exceeding the size 
> of the Subwindow file , then automatically the scroll bars should come, 
> But its not happening. 


Did you read my response from 23rd April?  The same applies to
QGraphicsView. 

QGraphicsView will only show scrollbars depending on the scroll bar
settings, and the size of the scene in the viewport.  The scene will NOT
increase in size and the view display scroll bars, simply because you paint
outside the visible area. 

To change the size of the scene, you can either add items to the scene
instead of painting directly, or manually increase the size of the scene to
cover the areas that you are painting to. 

Hope that helps, 

Tony.





More information about the Qt-interest-old mailing list