Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Looking for Example of QML using a table view editor via a C++ back end to edit XML files
Forum Updated to NodeBB v4.3 + New Features

Looking for Example of QML using a table view editor via a C++ back end to edit XML files

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    QutWizard
    wrote on 25 Oct 2014, 23:46 last edited by
    #1

    Right now I like the way the tableview example works, but I want to be able to edit and save the XML file, and it seems this example is read only using XmlListModel, and using the delegate to edit it, I need the data source to be editable, and not read only, I know I need to do this in the C++ back end, which I know how to create, and is very nice and powerful, but not sure what data type I should use to store the data in to allow saving it as an xml file when complete, this is where an example would be great, but I have been searching the internet for over a week, and I can not find one anywhere, it seems odd that they do not have an Example for such a useful feature as this, but I am sure there is a data type or Data Model, maybe its as simple as a class derived from QObject set to the source of a ListModel, but in the end, I have to save it as XML, which I am guessing I need to use QXmlStreamWriter, and maybe iterate through the data and fill in the right properties, so I am sure I will be able to figure it out the hard way, the old fashion way, write it and find out, but my guess is that there is an easier way to do it.

    BTW: This app is called Qut Wizard, its part of the WittyWizard.org [wittywizard.org] Open Source Project that uses Wt for the Web Application and a Qt version of the Wizard called Qut Wizard, the idea is using a Qt Quick QML app to edit the web site, which is stored in XML documents, which can be uploaded later using ssh or ftp, which is more secure then a web based back end.

    Thanks
    Jeff Flesher

    1 Reply Last reply
    0

    1/1

    25 Oct 2014, 23:46

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved