Results 1 to 3 of 3

Thread: To find X, Y position of a pixmap item in Graphicsscene

  1. #1
    Join Date
    Jun 2009
    Location
    India
    Posts
    143
    Thanks
    16
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default To find X, Y position of a pixmap item in Graphicsscene

    Hi all,

    i have added a QGraphicsPixmapItem to Qgraphicsscene.

    Now i need to know the X,Y position of the Pixmap Item located in the graphics scene. how do i get it..

    i will use it in setPos(x,y) to move the pixmap item...

    Regards,
    Augus

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: To find X, Y position of a pixmap item in Graphicsscene


  3. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: To find X, Y position of a pixmap item in Graphicsscene

    What's about QGraphicsItem::pos()? In Qt classes you always have setFoo() and foo().

    EDIT: ah, sceene coordinates...

Similar Threads

  1. QLabel and its content (pixmap) position problem.
    By miqqo in forum Qt Programming
    Replies: 1
    Last Post: 21st September 2010, 09:57
  2. How to move an item on a GraphicsScene
    By Holy in forum Qt Programming
    Replies: 17
    Last Post: 25th July 2008, 14:40
  3. Inaccurate MouseEvent position over a Scaled Pixmap
    By ramstormrage in forum Newbie
    Replies: 9
    Last Post: 26th May 2008, 10:48
  4. Replies: 1
    Last Post: 16th October 2007, 22:41
  5. [GraphicsScene] retrieving click-position
    By Wirloff in forum Qt Programming
    Replies: 10
    Last Post: 12th April 2007, 10:26

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.