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. Generate .ui file from QWidget
Qt 6.11 is out! See what's new in the release blog

Generate .ui file from QWidget

Scheduled Pinned Locked Moved General and Desktop
7 Posts 5 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.
  • freddy311082F Offline
    freddy311082F Offline
    freddy311082
    wrote on last edited by
    #1

    Hi Guys...

    I'm developing a software solution where I have 3 application: server, client and implementation tool

    the implementation tool is our main application where we define de behaviour of our system, after that, we send this behaviour to our server, and the client use it.

    for that reason, we need to define each form used in the client side, send it to our server and after that, download it and put it on the client.

    We are thinking to use QUiLoader class to make it, but our problem is that this class need a .ui file. For that, we need to send the .ui file to our server.

    my question is... ¿how can I get a .ui file from a QWidget object? ¿can I do that?

    best regards

    Freddy

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

      Hi,

      So your implementation tool would be some kind of Qt Designer ?

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

      1 Reply Last reply
      0
      • freddy311082F Offline
        freddy311082F Offline
        freddy311082
        wrote on last edited by
        #3

        yeap... something like qt designer, but I don't need all widgets.. something like that

        regard

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

          You cannot get a .ui file from a QWidget. How do you image that would work?

          1 Reply Last reply
          0
          • freddy311082F Offline
            freddy311082F Offline
            freddy311082
            wrote on last edited by
            #5

            I think that Qt Designer go down over each component starting from a root Widget, take its properties and after that, put them on the xml file (the .ui file)... and the reverse process to load each .ui file. It's a tree... at less is how I would do this.

            Thank's for your answer Andre... I'm going to implement this my self. I just asked because I don't wanna make something that Qt solve it...

            Thank's to everyone

            V 1 Reply Last reply
            0
            • freddy311082F freddy311082

              I think that Qt Designer go down over each component starting from a root Widget, take its properties and after that, put them on the xml file (the .ui file)... and the reverse process to load each .ui file. It's a tree... at less is how I would do this.

              Thank's for your answer Andre... I'm going to implement this my self. I just asked because I don't wanna make something that Qt solve it...

              Thank's to everyone

              V Offline
              V Offline
              VoLinhTruc
              wrote on last edited by
              #6

              @freddy311082 I think so, I don't wanna make something that Qt solve it.

              Until know, we don't have any solution for this from Qt.

              I hope they will supply an function to do this soon.

              Christian EhrlicherC 1 Reply Last reply
              0
              • V VoLinhTruc

                @freddy311082 I think so, I don't wanna make something that Qt solve it.

                Until know, we don't have any solution for this from Qt.

                I hope they will supply an function to do this soon.

                Christian EhrlicherC Offline
                Christian EhrlicherC Offline
                Christian Ehrlicher
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @VoLinhTruc said in Generate .ui file from QWidget:

                hope they will supply an function to do this soon.

                Why? What's a use-case outside Qt-Designer? And Qt is open-source - feel free to provide a patch for it if you really need it.

                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
                1

                • Login

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