Results 1 to 2 of 2

Thread: copying QGraphicsItemGroup

  1. #1
    Join Date
    Nov 2007
    Posts
    26
    Thanks
    2
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default copying QGraphicsItemGroup

    Whats the preferred way to copy a QGraphicsItemGroup so that it can be reused?

    Qt Code:
    1. QGraphicsItemGroup *newgroup = new QGraphicsItemGroup(*oldgroup);
    To copy to clipboard, switch view to plain text mode 

    Can the end result of this be achieved by some other means avoiding subclassing and putting in copy constructors?


    Thanks in advance.

    Jamie

  2. #2
    Join Date
    Nov 2007
    Posts
    26
    Thanks
    2
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: copying QGraphicsItemGroup

    It's ok, I've done it differently.

    Thanks

Similar Threads

  1. Related To QGraphicsItemGroup
    By ashishsaryar in forum Qt Programming
    Replies: 0
    Last Post: 29th April 2008, 14:55
  2. Add two QGraphicsItemGroup
    By ashishsaryar in forum Qt Programming
    Replies: 2
    Last Post: 5th February 2008, 18:00
  3. Replies: 2
    Last Post: 5th September 2007, 22:31
  4. Copying contents of QTab
    By Salazaar in forum Qt Tools
    Replies: 4
    Last Post: 3rd June 2007, 20:35
  5. Delete all members in a QGraphicsItemGroup
    By vmferreira in forum Qt Programming
    Replies: 3
    Last Post: 17th August 2006, 18:47

Tags for this Thread

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.