[Qt-interest] MouseEvent
chandrasekar wagmare
sekarwagmare at gmail.com
Thu Feb 19 13:07:42 CET 2009
QGraphicsItem::ItemIsSelectable and also reimplement QGraphicsscene
mouseEvent
mousePressEvent(QGraphicsSceneMouseEvent *event)
mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
On Thu, Feb 19, 2009 at 5:03 PM, Luc Devallonné
<luc.devallonne at mnemis.com>wrote:
> try to set the flag QGraphicsItem::ItemIsSelectable and/or
> QGraphicsItem::ItemIsMovable ...
> http://doc.trolltech.com/4.5/qgraphicsitem.html#GraphicsItemFlag-enum
>
> Luc
>
> http://doc.trolltech.com/4.5/qgraphicsitem.html#GraphicsItemFlag-enum
>
> On Thu, Feb 19, 2009 at 12:18 PM, Sujan Dasmahapatra
> <sdh at lmglasfiber.com> wrote:
> > Dear Friends
> >
> > I have an GraphicsItem. I want to select it and move it only when the
> user
> > presses left mouse on the item.How could I achieve this???Can anyone help
> me
> > please???
> >
> >
> >
> > Kind regards,
> > LM Glasfiber R&D (India) Pvt. Ltd.
> >
> > Sujan Dasmahapatra
> > Project Engineer - CFD
> >
> > Telephone: +91 80 66470248
> > Mobile:
> > E-mail: sdh at lmglasfiber.com
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > --------------------------------------------------------------
> >
> > This e-mail and any attachments are confidential. If you are not the
> named
> > or intended recipient, please notify the sender immediately and do not
> > disclose the contents to any other person, use it for any purpose or
> store
> > or copy the information in any medium. Any unauthorized disclosure, use
> or
> > storage is prohibited and might be unlawful.
> >
> > ________________________________
> > -------------------------------------------------
> >
> > This E-mail and any attachments are confidential. If you are not the
> named
> > or intended receipient, please notify the sender immediately and do not
> > disclose the contents to any other person, use it for any purpose or
> store
> > or copy the information in any medium. Any unauthorized disclosure, use
> or
> > storage is prohibited and might be unlawful.
> > _______________________________________________
> > Qt-interest mailing list
> > Qt-interest at trolltech.com
> > http://lists.trolltech.com/mailman/listinfo/qt-interest
> >
> >
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
--
CHANDRU
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090219/c56e4c69/attachment.html
More information about the Qt-interest-old
mailing list