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. Is it possible to Export QML or Widgets code into XML?
Forum Updated to NodeBB v4.3 + New Features

Is it possible to Export QML or Widgets code into XML?

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 2.0k 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.
  • S Offline
    S Offline
    ShrikantAmbade
    wrote on last edited by
    #1

    Hello,

    Does anyone now how to export QML or Qt Widget code into XML ??

    Many Thanks
    Shrikant

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Do you mean the .ui files that designer generate when you create new widgets with it ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      S 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Do you mean the .ui files that designer generate when you create new widgets with it ?

        S Offline
        S Offline
        ShrikantAmbade
        wrote on last edited by
        #3

        @SGaist No, because if we change from design mode to edit mode it automatically give us XML but that is just XML of layout not the whole concept...

        I want to export whole code into XML

        jsulmJ 1 Reply Last reply
        0
        • S ShrikantAmbade

          @SGaist No, because if we change from design mode to edit mode it automatically give us XML but that is just XML of layout not the whole concept...

          I want to export whole code into XML

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @ShrikantAmbade Do you want to export QML and C++ code to XML? What is the use case?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          S 1 Reply Last reply
          0
          • jsulmJ jsulm

            @ShrikantAmbade Do you want to export QML and C++ code to XML? What is the use case?

            S Offline
            S Offline
            ShrikantAmbade
            wrote on last edited by
            #5

            @jsulm What do you mean use case? I dont understand it

            If I understand you correctly, I need my output into XML format. Actually, It is the requirement of my project. And then this XML file is input to one framework which only accept XML as input

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              What does that framework do with that XML ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              S 1 Reply Last reply
              0
              • SGaistS SGaist

                What does that framework do with that XML ?

                S Offline
                S Offline
                ShrikantAmbade
                wrote on last edited by
                #7

                @SGaist It is basically a framework which is working for Security policies..

                It has analysis of security model, checking for Security model specification etc.. so my task is to design Graphical representation of model specifications and can be exportable into XML

                1 Reply Last reply
                0
                • jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  I mean: what are you going to do with that XML output?
                  And what do you mean by "Qt Widget code"? The .ui files which already contain XML?
                  What do you mean by "whole concept" - do you mean UI design and the program logic?
                  So, you have another framework which accepts XML as input and you want to generate this XML from QML/QtWidget? What does the framework do with this XML? I assume that this framework defines it's own XML based format for the input? In this case you will need to write your own converter.

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0

                  • Login

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