Results 1 to 12 of 12

Thread: How to scale an object which inherit QGrahicsItem within it's parent QGraphicsItem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to scale an object which inherit QGrahicsItem within it's parent QGraphicsIte

    Quote Originally Posted by christina123y View Post
    And I don't catch your mean for i don't know how to use QGraphicsItem::itemChange() to signal it's size change to it's parent item. Should I use QGraphicsItem::ItemTransformHasChanged or QGraphicsItem::ItemPositionChange
    as a parameter of QGraphicsItem::itemChange() ?
    Use ItemTransformChange so that you can return a new transformation.

    And could you provide me with source code on this ! Thank you very much!
    There is a nice example in the itemChange() documentation, only that it monitors the position and not the transformation of the item.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. The following user says thank you to wysota for this useful post:

    christina123y (27th February 2009)

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.