[Qt-interest] QGraphicsLayouts
John McClurkin
jwm at nei.nih.gov
Wed Oct 20 13:46:16 CEST 2010
Willy P wrote:
> Hey,
> I'm looking for the best way to manage widgets inside a QGraphicsScene
> so that the widget is always on the top right corner of a
> QGraphicsView. I want it to remain there when the view resizes. The
> only way I can think to do this is to manually create invisible items,
> create anchor layouts to them, and adjust their positions on resize.
> This seems a little bit kludgy and I'd be curious to hear other ideas.
>
> Thanks,
> Willy
Use horizontal and/or vertical spacers.
More information about the Qt-interest-old
mailing list