Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to transform (compile) a JSON to create a Qt Widgets ui form
QtWS25 Last Chance

How to transform (compile) a JSON to create a Qt Widgets ui form

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 4 Posters 1.3k Views
  • 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.
  • S Offline
    S Offline
    Stenek
    wrote on last edited by
    #1

    Is there a a way to transform a JSON schema file to a Qt ui form? (using QFormBuilder or QUiLoader 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.

    1 Reply Last reply
    0
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      You have to write it on your own. There is no json descrption for the ui file available - only the ui format (=xml)

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      3
      • B Offline
        B Offline
        basil.peace
        wrote on last edited by
        #3

        @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.

        Pablo J. RoginaP 1 Reply Last reply
        1
        • B basil.peace

          @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.

          Pablo J. RoginaP Offline
          Pablo J. RoginaP Offline
          Pablo J. Rogina
          wrote on last edited by
          #4

          @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.

          Upvote the answer(s) that helped you solve the issue
          Use "Topic Tools" button to mark your post as Solved
          Add screenshots via postimage.org
          Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          1

          • Login

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