Results 1 to 3 of 3

Thread: Zoom GraphicsView but not Items

  1. #1
    Join Date
    Jun 2007
    Posts
    52
    Thanks
    6

    Default Zoom GraphicsView but not Items

    I am working on a project where I need to use a graphicsView and use the zooming feature. My only problem is that some of the items need to zoom and others don't. Is there an easy way to tell object, "Ignore Scaling"?

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Zoom GraphicsView but not Items

    Set this flag to those items: QGraphicsItem::ItemIgnoresTransformations

  3. The following user says thank you to marcel for this useful post:

    abbapatris (15th October 2007)

  4. #3
    Join Date
    Jun 2007
    Posts
    52
    Thanks
    6

    Default Re: Zoom GraphicsView but not Items

    You're a life saver thanks so much.

Similar Threads

  1. GraphicsView performance problems
    By Gopala Krishna in forum Qt Programming
    Replies: 79
    Last Post: 8th August 2007, 17:32
  2. Selective highlighting of Items
    By Kapil in forum Qt Programming
    Replies: 3
    Last Post: 26th May 2006, 12:20
  3. Zoom Options
    By Kapil in forum Qt Programming
    Replies: 2
    Last Post: 9th March 2006, 11:19

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.