Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QGraphicsPolygonItem - corner positions stay the same even when it moves
Forum Updated to NodeBB v4.3 + New Features

QGraphicsPolygonItem - corner positions stay the same even when it moves

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Phil_oakleaf
    wrote on last edited by
    #1

    Hello and hope someone can help.

    I create some QGraphicsPolygonItem objects, add them to the scene and move them around. Works great!

    But when I look at the actual QPointF corner values of the QPolygonF they all remain the same no matter where I move them to.

    How can I get the real position of the QGraphicsPolygonItem after it has been moved in the

    Any help will be much appreciated
    Phil

    1 Reply Last reply
    0
    • C Offline
      C Offline
      cincirin
      wrote on last edited by
      #2

      "QGraphicsItem::mapToScene":http://developer.qt.nokia.com/doc/qt-4.8/qgraphicsitem.html#mapToScene-3

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved