Hi Koen, On 13.05.2012 10:17, Koen Deforche wrote: > Hey stefan, > > On May 9, 2012 9:39 AM, "Stefan Ruppert" <[email protected] > <mailto:[email protected]>> wrote: > > > I have written a custom WAbstractChart Widget which renders some > > diagrams into it. The diagram width can be greater than the > > WPaintedWidget width. > > > > I have tried to put the chart in WScrollArea but this does not work for > > me. Any hints? > A WPaintedWidget in a WScrollArea (or WContainerWidget with CSS overflow > configured) should behave as expected: resize the widget to the greater > virtual size. Perhaps you expect to only be able to draw the diagram > partially (and receive a partial paint event) for the visible area? That > is not foreseen, but could be implemented by reacting to scroll events > to update the diagram. > > > > > Do I need to change the size of the chart? How can I do that? > > You need to size the chart to its virtual size.
Ok, I understand. Then its maybe a problem of my used layout managers and widgets... The chart is put into a WContainerWidget using a VBoxLayout. The container widget is than added to a WStackedWidget which is added to another VBoxLayout... So I have to find out which container widget I need to resize? Is this correct? Regards, Stefan -- Stefan Ruppert <[email protected]> MyARM GmbH, Altkönigstr. 7, 65830 Kriftel, Germany Phone: +49 6192/9772818 Web: http://www.myarm.com ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
