Results 1 to 16 of 16

Thread: How to save QTreeWidget items in an XML file?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #10
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: How to save QTreeWidget items in an XML file?

    Just to comment on the recursive function mentioned above:
    In general it is NOT advised to use recusiveness .
    It has several disadvantages, which can be very serious problem depending on the code base.
    Generally it is advised to use a stack instead.
    (This is not to say recursion has no place at all, but for most cases you get only drawbacks and no benefits from recursion)
    Last edited by high_flyer; 22nd November 2017 at 22:01.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Replies: 5
    Last Post: 3rd January 2011, 11:15
  2. How to save QGraphicsScene Items to a file?
    By yagabey in forum Qt Programming
    Replies: 5
    Last Post: 28th February 2010, 10:16
  3. parse items of QTreeWidget into file/QSettings
    By Mystical Groovy in forum Qt Programming
    Replies: 3
    Last Post: 8th November 2009, 16:52
  4. How could I save Items on a QGraphicsScene?
    By pinkfrog in forum Qt Programming
    Replies: 2
    Last Post: 9th January 2009, 05:03
  5. Save & Restore a selection in QTreeWidget
    By youkai in forum Qt Programming
    Replies: 1
    Last Post: 1st September 2008, 19:54

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
  •  
Qt is a trademark of The Qt Company.