Results 1 to 3 of 3

Thread: Calculate scene coordinates from QGraphicsLinearLayout

  1. #1
    Join Date
    Jan 2010
    Location
    Turkey
    Posts
    39
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Calculate scene coordinates from QGraphicsLinearLayout

    In my application I used custom objects which derive from QGraphicsWidget and I put them inside QGraphicsLinearLayout. But now I need to find scene coordinates of each item. Is it possible? How?

  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: Calculate scene coordinates from QGraphicsLinearLayout

    Lookin at a few posts below your post I can find this link:
    http://doc.qt.nokia.com/4.7/graphics...ne-coordinates

  3. #3
    Join Date
    Nov 2010
    Posts
    315
    Thanked 53 Times in 51 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Calculate scene coordinates from QGraphicsLinearLayout

    See QGraphicsItem there is large collection of methods: QGraphicsItem::mapToItem, QGraphicsItem::mapToScene, and so on.

Similar Threads

  1. QGraphicsView, QGraphicsScene item coordinates in scene
    By harakiri in forum Qt Programming
    Replies: 2
    Last Post: 5th December 2010, 10:02
  2. Problem with QGraphicsView/Scene coordinates
    By Andrewshkovskii in forum Newbie
    Replies: 12
    Last Post: 19th October 2009, 10:41
  3. Viewport and scene coordinates
    By aurelius in forum Newbie
    Replies: 2
    Last Post: 30th October 2008, 23:47
  4. real world coordinates in graphics view / scene
    By robertson1 in forum Qt Programming
    Replies: 2
    Last Post: 7th December 2007, 23:21
  5. Replies: 1
    Last Post: 26th September 2006, 05:38

Tags for this Thread

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.