Results 1 to 2 of 2

Thread: Save added Data to a GUI

  1. #1

    Default Save added Data to a GUI

    Hello everybody! I have a question... I am making a GUI which an user is able to add data to a QWidgetTree, however If the user adds an Item and then re-opens the GUI the item is no longer there.. how can I make the program save the item that is added once the user closes the program and then opens it again??

    thanks in advance!

  2. #2
    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: Save added Data to a GUI

    Well, you have to save the data, and load it when the GUI loads again.
    Have a look at QSettings.
    ==========================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. Save binary data into XML file
    By ^NyAw^ in forum Qt Programming
    Replies: 6
    Last Post: 22nd March 2013, 11:16
  2. QFileDialog for choosing filename to save data
    By araglin in forum Qt Programming
    Replies: 2
    Last Post: 1st April 2009, 08:46
  3. Replies: 2
    Last Post: 8th August 2008, 01:54
  4. EditStrategy, how to save data
    By JeanC in forum Qt Programming
    Replies: 33
    Last Post: 9th January 2008, 16:31
  5. Data not being added to my QTableView?
    By steg90 in forum Qt Programming
    Replies: 1
    Last Post: 20th November 2007, 14:20

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.