Results 1 to 4 of 4

Thread: How to make group Of QGraphicsItem ..

  1. #1
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    46
    Thanks
    7
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default How to make group Of QGraphicsItem ..

    Hi to all,
    i want to make group of selected item how it will be possible .
    I want to make group when i move one graphicsitem and it will come to another graphics item ..


    Thanks
    Ashish Kumar Saryar

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: How to make group Of QGraphicsItem ..

    J-P Nurmi

  3. #3
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    46
    Thanks
    7
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: How to make group Of QGraphicsItem ..

    I have seen QGraphicsItemGroup .... but i want to make group when one graphicsitem comes near to other (only on boundries).
    Ashish Kumar Saryar

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: How to make group Of QGraphicsItem ..

    What did you try so far? One option is to reimplement QGraphicsItem::itemChange(), detect the situation and form the group. Notice also QGraphicsItem::collidingItems().
    J-P Nurmi

  5. The following user says thank you to jpn for this useful post:

    ashishsaryar (4th February 2008)

Similar Threads

  1. destruction of QGraphicsItem
    By killkolor in forum Qt Programming
    Replies: 2
    Last Post: 5th December 2009, 10:31
  2. Window OS make distclean && qmake && make one line
    By patrik08 in forum General Programming
    Replies: 4
    Last Post: 22nd March 2007, 10:43
  3. Compiling with Qmake/Make
    By VireX in forum Newbie
    Replies: 25
    Last Post: 22nd February 2007, 05:57

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.