Results 1 to 3 of 3

Thread: Ownership or deleting of plot items

  1. #1
    Join Date
    Apr 2013
    Posts
    63
    Thanks
    15
    Qt products
    Qt4
    Platforms
    Windows

    Default Ownership or deleting of plot items

    I have class inherited from QwtPlot. I have few member variables which are pointers to QwtPlotMarker, QwtSymbol and QwtPlotCurve. In my constructor, I am allocating memory for them using new operator. Do I need to delete them in my destructor? Or QwtPlot's destructor will delete them ?

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,312
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Ownership or deleting of plot items


  3. #3
    Join Date
    Apr 2013
    Posts
    63
    Thanks
    15
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Ownership or deleting of plot items

    Ok, So there are ways to control ownership. Let me try ..Thanks

Similar Threads

  1. Problem with deleting items from QGraphicsScene
    By Wojtek_SZ in forum Qt Programming
    Replies: 7
    Last Post: 20th September 2011, 12:55
  2. Printing plot with many legend items
    By coppermine in forum Qwt
    Replies: 1
    Last Post: 11th March 2011, 10:18
  3. Plot items
    By kpr in forum Qwt
    Replies: 2
    Last Post: 14th February 2011, 11:47
  4. Replies: 5
    Last Post: 10th February 2010, 11:08
  5. Replies: 5
    Last Post: 27th November 2009, 13: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.