> The size of graphics scene is not really related as the view can view 
> any part of the scene you want. The layout system will make sure that 
> the size of the view is connected to the size of the dock widget 
> (which again is controlled by the splitter), so you would only need to 
> listen to the resize event of the view and your application will work 
> regardless of how the widget hierarchy looks. I've modified your 
> example a little to show you how this might be done. Please note that 
> this is probably not your most highly optimized example (you might 
> want to turn off opaque resizing for the splitters to avoid big 
> garbage collection steps and to increase the performance), but it 
> shows you the idea. (Also, this won't work if you add any transform to 
> the graphics view of course, in fact most of the things you can do 
> with a graphics view will break it, but I wanted to recreate the 
> hierarchy in your drawing above.)
>
> Just replace the hard coded path of the icon to something you have 
> available.
>
> Hope this is what you were looking for!
>
> -- Eskil

Absolutely, with this snippet i was able to deal  with the problem and 
get the sizes to play right. Thanks a lot.

Cheers,

Dawid

_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to