Results 1 to 2 of 2

Thread: resize a QGraphicsItem

  1. #1
    Join Date
    Feb 2008
    Posts
    102
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question resize a QGraphicsItem

    HI.
    How can i implement the resize behaviour of my custom QGraphicsRectItem??

    When i pass with the mouse on a corner, i could resize the item in height and in width.....

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

    Default Re: resize a QGraphicsItem

    Reimplement mouse events for the item and check if you are "near enough" the corner and if so, adjust the item's geometry in mouse move event.

Similar Threads

  1. destruction of QGraphicsItem
    By killkolor in forum Qt Programming
    Replies: 2
    Last Post: 5th December 2009, 11:31
  2. Resize Border for QGraphicsItem
    By william.dias in forum Qt Programming
    Replies: 2
    Last Post: 8th February 2008, 10:19
  3. Replies: 2
    Last Post: 22nd January 2008, 17:10
  4. Custom Shape Widget (resize)
    By PiXeL16 in forum Qt Programming
    Replies: 7
    Last Post: 12th February 2007, 08:00
  5. postponing resize event
    By Honestmath in forum Qt Programming
    Replies: 11
    Last Post: 26th February 2006, 01:32

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.