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,359
    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: 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, 10:31
  2. Resize Border for QGraphicsItem
    By william.dias in forum Qt Programming
    Replies: 2
    Last Post: 8th February 2008, 09:19
  3. Replies: 2
    Last Post: 22nd January 2008, 16:10
  4. Custom Shape Widget (resize)
    By PiXeL16 in forum Qt Programming
    Replies: 7
    Last Post: 12th February 2007, 07:00
  5. postponing resize event
    By Honestmath in forum Qt Programming
    Replies: 11
    Last Post: 26th February 2006, 00: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.