Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Get notification of QGraphicsView resizing

    General and Desktop
    2
    3
    1094
    Loading More Posts
    • 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.
    • J
      jdowner last edited by

      Hi,

      Apologies if this is a really trivial problem, but I have been unable to figure out how to detect when a QGraphicsView is resized. I need to pass this information to a QGraphicsWidget contained in the QGraphicsScene displayed by the QGraphicsView.

      Any pointers appreciated!

      -Josh

      1 Reply Last reply Reply Quote 0
      • C
        cincirin last edited by

        QAbstractScrollArea is ancestor of QGraphicsView, so you can reimplement "QAbstractScrollArea::resizeEvent":http://qt-project.org/doc/qt-4.8/qabstractscrollarea.html#resizeEvent

        1 Reply Last reply Reply Quote 0
        • J
          jdowner last edited by

          Arggh! Of course. Thank you!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post