How to transform (compile) a JSON to create a Qt Widgets ui form
-
wrote on 8 Jun 2019, 03:49 last edited by
Is there a a way to transform a JSON schema file to a Qt ui form? (using
QFormBuilder
orQUiLoader
perhaps?) In turn, the form should allow -- through manual form input -- the creation of JSON file "instances" as specified by the original JSON schema.Searching the web, I found a tool -- json-editor -- that accomplishes our intended purpose but in the form of JSON -> JavaScript -> HTML Form -> JSON which is obviously not native to Qt and we want something Qt native.
Please help.
-
You have to write it on your own. There is no json descrption for the ui file available - only the ui format (=xml)
-
wrote on 7 May 2021, 16:51 last edited by
@Stenek, have you found a solution?
I have the same problem and I've found https://github.com/agoose77/qt-jsonschema-form.
It looks unmaintained, but it may be a good start. -
@Stenek, have you found a solution?
I have the same problem and I've found https://github.com/agoose77/qt-jsonschema-form.
It looks unmaintained, but it may be a good start.wrote on 7 May 2021, 18:40 last edited by@basil-peace just curious:
how that JSON definition for the UI is created? or how do you get it from?isn't it easier to use the standard XML format for .ui files?
Thanks.