[Qt-interest] Child Inherit Size of Parent

velociraptor Genjix aphidia at hotmail.com
Sun Oct 31 22:29:22 CET 2010


That won't work because when you add a layout, it resizes the content to fit. I mean placing the TextBox *ON TOP* of the QGraphicsView :), not besides it (shrinking the QGraphicsView).

----------------------------------------
> From: sean.harmer at maps-technology.com
> To: qt-interest at trolltech.com
> Date: Sun, 31 Oct 2010 20:30:40 +0000
> Subject: Re: [Qt-interest] Child Inherit Size of Parent
>
> On Sunday 31 October 2010 18:16:28 velociraptor Genjix wrote:
> > This picture will clarify (notice the text doesn't become smaller but the
> > box does):
> > http://www.qtcentre.org/attachment.php?attachmentid=5413&d=1288469631
>
> Yes, this can be done with layouts or simple setGeometry() calls. Nowhere did
> I suggest changing the scaling on the painter or changing the font size.
>
> See my other post for more details.
>
> Sean
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
 		 	   		  



More information about the Qt-interest-old mailing list