Results 1 to 2 of 2

Thread: QGraphicsItem itemChange not capturing size change of an item

  1. #1
    Join Date
    Jun 2010
    Posts
    97
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanked 2 Times in 2 Posts

    Default QGraphicsItem itemChange not capturing size change of an item

    Hi,

    I have graphics application where I have QGraphicsRectItem re-implemented and have added ItemChange slot. I have also added selection handles to rectangle and have set flags as
    setFlags(ItemIsSelectable|ItemIsMovable|ItemSendsG eometryChanges);

    I have one QTreeWidget where I am capturing rectangle details and able to get new postion on movement of rectangle because of ItemChange slot. But when I resize it, I am getting original size details. I am using rect() or boundingRect() function to get new size of rectanle. Recatngle gets resized but new size is not know.
    Pl. help me.


    Manish

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: QGraphicsItem itemChange not capturing size change of an item

    How are you resizing those items?
    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.


Similar Threads

  1. Pass Size and Text to a QGraphicsItem
    By dubstar_04 in forum Newbie
    Replies: 1
    Last Post: 12th April 2011, 08:44
  2. get qgraphicsitem size
    By rogerholmes in forum Newbie
    Replies: 10
    Last Post: 18th February 2010, 06:04
  3. Replies: 0
    Last Post: 7th January 2010, 23:03
  4. Replies: 8
    Last Post: 15th May 2007, 10:21
  5. change font size and button size of QMessageBox
    By nass in forum Qt Programming
    Replies: 6
    Last Post: 13th September 2006, 20:16

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.