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. Change QGraphicsView scene to have coords system origin at top - left corner

Change QGraphicsView scene to have coords system origin at top - left corner

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

    Hi All! I am trying to work with QGraphicsView .I noticed the default coords system is center at the center of vew's bounding box.Can it be changed to be at top left corner of that box?

    Thanks.

    1 Reply Last reply
    1
    • K Offline
      K Offline
      kenchan
      wrote on last edited by
      #2

      you could try QGraphicsView::setAlignment(Qt::AlignLeft | Qt::AlignTop)

      "see here":http://qt-project.org/doc/qt-4.8/qgraphicsview.html#alignment-prop

      1 Reply Last reply
      1

      • Login

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