[Qt-interest] Anchor a QGraphicsPathItem to two QGraphicsWidget
Ori Lahav
vbcrlf at gmail.com
Mon Jun 14 00:16:39 CEST 2010
Hi,
Thanks Sean, but I've looked at the anchorlayout example and they set the
parent widget layout (w->setLayout(l)), and I can't do that in my case.
Jason, QGraphicsItemGroup can't have a layout set.
Cheers,
Ori.
On Sun, Jun 13, 2010 at 9:55 PM, Sean Harmer <
sean.harmer at maps-technology.com> wrote:
> 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
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100614/1cdb5147/attachment.html
More information about the Qt-interest-old
mailing list