Results 1 to 2 of 2

Thread: moving QGraphisItem from one posiion to another

  1. #1
    Join Date
    Mar 2012
    Location
    Lesotho
    Posts
    33
    Qt products
    Qt4 Qt/Embedded Qt Jambi
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default moving QGraphisItem from one posiion to another

    I have implemented my own QGraphiscItems, so now I want to be able to move it around on the scene at any position with a mouse.any help?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: moving QGraphisItem from one posiion to another

    Qt Code:
    1. item->setFlag(QGraphicsItem::ItemIsMovable);
    To copy to clipboard, switch view to plain text mode 
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Moving window
    By Kangs in forum Qwt
    Replies: 3
    Last Post: 13th September 2011, 19:12
  2. Replies: 0
    Last Post: 24th May 2010, 12:19
  3. Moving from Qwt 5.2 to 6.0 (trunk)
    By bigjoeystud in forum Qwt
    Replies: 18
    Last Post: 21st May 2010, 19:17
  4. Moving a QTcpSocket around
    By chaoticbob in forum Qt Programming
    Replies: 2
    Last Post: 2nd March 2010, 21:14
  5. why pushbutton moving??
    By Shuchi Agrawal in forum Qt Tools
    Replies: 7
    Last Post: 19th January 2007, 17:17

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.