[Qt-interest] Select QGraphicsItem on the scene and move it
Fred Duarte
fred.duarte at openbossa.org
Sun Mar 21 16:40:28 CET 2010
There's the *ItemIsMovable* flag which you can set:
*item->setFlag(QGraphicsItem::ItemIsMovable);*
And to retrieve the item's position in parent coordinates do this:
*QPointF position = item->pos();*
On Sat, Mar 20, 2010 at 9:03 AM, Kari Laine <klaine8 at gmail.com> wrote:
> Hi,
>
> first thank you for all the help I have gotten from here.
>
> Could someone tell me please how I made objects moveable on the Scene?
>
> So what I am after is a setting that makes them movable and a method
> to get their position.
> I have so far trying to make it myself but it feels so stupid that I
> think there must a better way.
>
> Best Regards
> Kari
>
>
>
>
> --
> PIC - ARM - Microcontrollers - I2C - SPI
> Keypads - USB-RS232 - USB-I2C - Accessories
> http://www.byvac.com
> I am just a happy customer
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
--
Frederico Simas Duarte
SW & UI - Software and User Interface
INDT - Nokia Institute
http://fredyduarte.net/blog/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100321/ae1970f8/attachment.html
More information about the Qt-interest-old
mailing list