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. How to get the "real" position of the QGraphicsView/QGraphicsScene ?
Forum Updated to NodeBB v4.3 + New Features

How to get the "real" position of the QGraphicsView/QGraphicsScene ?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.5k 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.
  • O Offline
    O Offline
    opengpu
    wrote on last edited by
    #1

    I have a QGraphicsScene which is very large(eg. (5000, 5000)), how to get the real logic postion of it?
    I tried globalPos, localPos, pos, screenPos, windowPos...it's all not what i want.
    or should I condider the panned center pos after I panned the scene?

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hi,

      The "Graphics View Coordinate System":http://qt-project.org/doc/qt-5/graphicsview.html#the-graphics-view-coordinate-system article should be helpful.

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      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