Results 1 to 7 of 7

Thread: Detect changes to the Viewport in QGraphicsView on resize

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,321
    Thanks
    316
    Thanked 871 Times in 858 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Detect changes to the Viewport in QGraphicsView on resize

    Your objection is valid
    Not so much an objection as an observation that there are many ways to skin Qt cats. Event filters are one of the more difficult things to understand about Qt event processing, whereas deriving a class and overriding a virtual method is straightforward.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  2. #2
    Join Date
    Nov 2016
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Detect changes to the Viewport in QGraphicsView on resize

    Hi All,

    Thanks for the replies, Using the event handler has worked for me. I did not want to subclass my dialog box if I didn't need to. Wanted to know when ever the viewport location changed within a scene ( scrolling, dragging, scaling, resize, etc) this worked for me.

    Thanks!

Similar Threads

  1. Replies: 1
    Last Post: 20th January 2016, 07:30
  2. Detect changes to the Viewport in QGraphicsView
    By Casper14 in forum Qt Programming
    Replies: 1
    Last Post: 24th July 2014, 11:21
  3. how to detect if QGraphicsTextItem is inside viewport
    By mihnen in forum Qt Programming
    Replies: 2
    Last Post: 11th September 2012, 03:57
  4. Replies: 5
    Last Post: 9th January 2012, 21:22
  5. Replies: 3
    Last Post: 11th December 2011, 10:09

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.