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 there a way to retrieve ui file from header file which is compiled by uic?
Forum Updated to NodeBB v4.3 + New Features

Is there a way to retrieve ui file from header file which is compiled by uic?

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 356 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.
  • A Offline
    A Offline
    aravmadd
    wrote on last edited by
    #1

    Hi!,

    Sorry for this question. We used a uic compiler to generate a header file from ui file. But then we left this for few months and we lost the ui file.

    Is there a way where we can retrieve the ui file by going through the header file generated by uic file.

    Or do we need to manually read entire header file and create ui by manually?

    Thanks for understanding :-)

    Pl45m4P 1 Reply Last reply
    0
    • A aravmadd

      Hi!,

      Sorry for this question. We used a uic compiler to generate a header file from ui file. But then we left this for few months and we lost the ui file.

      Is there a way where we can retrieve the ui file by going through the header file generated by uic file.

      Or do we need to manually read entire header file and create ui by manually?

      Thanks for understanding :-)

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      @aravmadd

      No, AFAIK this is not possible. The uic process does not work in both directions. The uic can't create a XML (.ui) file from a C++ header.

      How can you "lose" a file? :)


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      A 1 Reply Last reply
      1
      • Pl45m4P Pl45m4

        @aravmadd

        No, AFAIK this is not possible. The uic process does not work in both directions. The uic can't create a XML (.ui) file from a C++ header.

        How can you "lose" a file? :)

        A Offline
        A Offline
        aravmadd
        wrote on last edited by
        #3

        @Pl45m4 . Actually it was not my file. I am using qt funcitonalities with some other frameworks.It was used previously and worked by other person. But then he graduated and then he left.But he didnt keep the ui file so we have now only uic file. And i planned to make few changes so everything is kind of quite messy.

        I am trying to read through header file and create ui. I dont know if this is the only way?

        JonBJ 1 Reply Last reply
        0
        • A aravmadd

          @Pl45m4 . Actually it was not my file. I am using qt funcitonalities with some other frameworks.It was used previously and worked by other person. But then he graduated and then he left.But he didnt keep the ui file so we have now only uic file. And i planned to make few changes so everything is kind of quite messy.

          I am trying to read through header file and create ui. I dont know if this is the only way?

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @aravmadd said in Is there a way to retrieve ui file from header file which is compiled by uic?:

          I am trying to read through header file and create ui. I dont know if this is the only way?

          Yes, it is. Hopefully if it's not too complicated your can reverse-engineer to reproduce a .ui which corresponds.

          A 1 Reply Last reply
          0
          • JonBJ JonB

            @aravmadd said in Is there a way to retrieve ui file from header file which is compiled by uic?:

            I am trying to read through header file and create ui. I dont know if this is the only way?

            Yes, it is. Hopefully if it's not too complicated your can reverse-engineer to reproduce a .ui which corresponds.

            A Offline
            A Offline
            aravmadd
            wrote on last edited by
            #5

            @JonB Thanks jon. will do that re-engineering. I opened this question to make sure that there is no tool like that which does this re-engineering things. So will close the question now. Thanks

            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