Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. How do QGraphicsView transforms work?

How do QGraphicsView transforms work?

Scheduled Pinned Locked Moved Game Development
4 Posts 3 Posters 4.0k 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.
  • M Offline
    M Offline
    m_p_wilcox
    wrote on last edited by
    #1

    I've been trying to move a view around my scene with translate() as suggested in the docs - it doesn't appear to do anything at all (well if I check the matrix returned by transform() I can see that the call has indeed updated the matrix but my view doesn't move at all).

    I can move about the scene programmatically by setting values for the (hidden) scroll bars.

    Am I misunderstanding the docs, or seeing some sort of bug?

    Mark

    1 Reply Last reply
    0
    • M Offline
      M Offline
      m_p_wilcox
      wrote on last edited by
      #2

      Hmmm, just saw this in the bug database:
      http://bugreports.qt.nokia.com/browse/QTBUG-6542

      If it's really the case that translate() doesn't work then perhaps the docs could be updated?

      1 Reply Last reply
      0
      • O Offline
        O Offline
        ofmrew
        wrote on last edited by
        #3

        I tried translation and have the same results as m_p_wilcox; has anything been done?

        1 Reply Last reply
        0
        • T Offline
          T Offline
          Tengger
          wrote on last edited by
          #4

          You have to

          setTransformationAnchor(QGraphicsView::NoAnchor)
          

          on qGraphicsView for translate() to work.

          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