How to transform (compile) a JSON to create a Qt Widgets ui form
-
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)
-
@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. -
@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.