Results 1 to 2 of 2

Thread: Automatic delete of attached items

  1. #1
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Automatic delete of attached items

    Hello!

    I'ld like to know if an item that is attached to a QwtPlot will be deleted when the QwtPlot is deleted if it's still attached to it (I couldn't read any clear instruction about this in the manuals).


    Thanks,

    Momergil
    May the Lord be with you. Always.

  2. #2
    Join Date
    Dec 2013
    Location
    Toronto, Canada
    Posts
    62
    Thanked 16 Times in 15 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Automatic delete of attached items

    I'ld like to know if an item that is attached to a QwtPlot will be deleted when the QwtPlot is deleted if it's still attached to it
    When deleting a plot...
    If autoDelete is on (the default is on) all attached items are detached and deleted. If autoDelete is off, all attached items are detached but not deleted. Have a look at QwtPlotDict::setAutoDelete ( ) and QwtPlotDict::detachItems ( )

  3. The following user says thank you to Cah for this useful post:

    Momergil (23rd June 2014)

Similar Threads

  1. Detele list items when delete-key hit.
    By mshemuni in forum Qt Programming
    Replies: 1
    Last Post: 24th February 2013, 15:26
  2. Replies: 1
    Last Post: 4th August 2011, 22:36
  3. How to delete items in QTreeWidget...
    By Patrick Sorcery in forum Newbie
    Replies: 12
    Last Post: 10th September 2010, 09:41
  4. Does clear()/clearContents() delete items?
    By vycke in forum Qt Programming
    Replies: 1
    Last Post: 31st July 2008, 17:49
  5. delete items from list box
    By vvbkumar in forum Qt Programming
    Replies: 4
    Last Post: 23rd June 2006, 19:08

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.