Results 1 to 5 of 5

Thread: how to save a treewidget

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2016
    Posts
    17
    Qt products
    Qt4
    Platforms
    Unix/X11

    Unhappy Re: how to save a treewidget

    Hi,
    I tried but only root is saved everytime. Can you please help me with the code that

    How to Write each column's text to the same row in the CSV file, separated by commas. Use the "indent" value to insert empty CSV fields
    // at the start of the row so you can preserve the tree structure. Or choose some other way to indicate
    // in the CSV file what the current level is (like maybe just write the indent value as the first
    // field in the CSV row).

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: how to save a treewidget

    Quote Originally Posted by namitha View Post
    I tried but only root is saved everytime. Can you please help me with the code that
    If you post the code that does not work we can likely help you find the problem in it.

    Cheers,
    _

Similar Threads

  1. Save TreeWidget into XML-FIle
    By mayrhofer in forum Newbie
    Replies: 3
    Last Post: 27th December 2015, 13:28
  2. QVariant : save : unable to save type 128
    By capbee in forum Qt Programming
    Replies: 0
    Last Post: 15th July 2013, 09:10
  3. TreeWidget
    By olivier1978 in forum Qt Programming
    Replies: 1
    Last Post: 17th February 2013, 18:48
  4. Replies: 4
    Last Post: 29th May 2012, 23:37
  5. Replies: 2
    Last Post: 18th May 2010, 22:44

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.