Results 1 to 5 of 5

Thread: How to save and load listView row data?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2019
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default How to save and load listView row data?

    I made a listView with add and remove row functions by following this tutorial https://www.bogotobogo.com/Qt/Qt5_QL...elView_MVC.php but without the QComboBox.

    I binded the QStringListModel with an empty QStringList from another .cpp file.

    Whenever I close the app after adding rows, the listView empties. How can I save the ListView rows so that they load when I open the app again?
    Last edited by twentynineteen; 25th July 2019 at 08:29. Reason: updated contents

Similar Threads

  1. load a specific image for each item of listview
    By Binary01 in forum Qt Quick
    Replies: 4
    Last Post: 19th February 2016, 18:04
  2. Save/Load JSON using QML
    By aIsmail in forum Newbie
    Replies: 1
    Last Post: 16th November 2015, 08:51
  3. Load more items to listview
    By matsukan in forum Qt Quick
    Replies: 1
    Last Post: 14th November 2012, 23:48
  4. Save to SVG and load from it
    By Radagast in forum Qt Programming
    Replies: 3
    Last Post: 14th June 2008, 14:22
  5. Can we save & load the settings in GUI !
    By Krish in forum Newbie
    Replies: 6
    Last Post: 26th March 2008, 15:33

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.