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. Get notification of QGraphicsView resizing

Get notification of QGraphicsView resizing

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

    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
    0
    • C Offline
      C Offline
      cincirin
      wrote on last edited by
      #2

      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
      0
      • J Offline
        J Offline
        jdowner
        wrote on last edited by
        #3

        Arggh! Of course. Thank you!

        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