[Qt-interest] Anchor a QGraphicsPathItem to two QGraphicsWidget

Sean Harmer sean.harmer at maps-technology.com
Sun Jun 13 20:55:23 CEST 2010


Hi,

On 13/06/2010 19:46, Ori Lahav wrote:
> The two widgets are directly on the scene, how can I use the
> QGraphicsAnchorLayout? I can't set it as the scene layout.

Without trying an example, my understanding is that you do not set the 
layout on the scene. You simply add your widgets to the layout and 
specify how you wish them to be anchored together.

See the snippets given in the docs:

http://doc.qt.nokia.com/4.7-snapshot/qgraphicsanchorlayout.html#details

If you still get no joy come back again. I'll have more time tomorrow 
(perhaps) ;-)

Good luck,

Sean



More information about the Qt-interest-old mailing list