PDA

View Full Version : XML grid view



afuentes
15th May 2018, 12:18
We have a few config files in XML format and we would like to create a simple XML editor using a XML grid view to provide to our users a simple way to create/modify the XML files.

To be clearer what I want is something like this online editor can do http://xmlgrid.net/. I have attached a picture of an example.

I have been thinking doing this using qtreeview and qtableview.

I would be appreciate if you could give some tips how I could do this.

12821

d_stranz
16th May 2018, 00:27
There is nothing in the Qt library that will do this out-of-the-box. You'll have to write it yourself, most likely. You could start by looking at the DOM Bookmarks (https://doc.qt.io/qt-5/qtxml-dombookmarks-example.html) example. There is also the Qt Property Browser framework (https://doc.qt.io/archives/qq/qq18-propertybrowser.html) in the Qt archives. Trust me, this is hard to use. You might also find something in one of the inqlude libraries (https://inqlude.org/) or on the Linux-Apps (https://www.linux-apps.com/) page (search for "widgets").

There is also a commercial product, QTitanDataGrid (https://www.devmachines.com/qtitandatagrid-overview.html), that looks to have some of the hierarchical table features your screenshot uses.