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. Static Library from Qt UI Project

Static Library from Qt UI Project

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 3 Posters 825 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.
  • CodeFreaksC Offline
    CodeFreaksC Offline
    CodeFreaks
    wrote on last edited by
    #1

    Hi everyone,
    Is it possible to make a static library from UI project and add it to the projects which don't have access to Qt resources ?

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

      Hi
      Is it should be - but other app will not be able to use any
      resources compiled into lib.
      But lib it self can.

      What is the goal of this ?
      Like a Qt powered helper libs for non Qt apps or ?
      Note that running Qt inside a lib, its not super trivial as
      it needs an event loop. And with a non Qt app using it, the lib
      must have one itself to be able to use signal & slots etc.

      1 Reply Last reply
      3
      • CodeFreaksC Offline
        CodeFreaksC Offline
        CodeFreaks
        wrote on last edited by CodeFreaks
        #3

        @mrjj
        Thanks for reply.
        I want to add a gui into another program that doesn't have proper tools for creating a gui.
        I'm looking for a way to provide an advanced ui inside the program.

        mrjjM 1 Reply Last reply
        0
        • CodeFreaksC CodeFreaks

          @mrjj
          Thanks for reply.
          I want to add a gui into another program that doesn't have proper tools for creating a gui.
          I'm looking for a way to provide an advanced ui inside the program.

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @CodeFreaks
          If the other program is not a Qt program, embedding QWidgets into it
          will not be easy. I mean show QWidgets from the lib would show inside apps
          mainwindow. That sort of integration.

          I think the other way around would make more sense.
          Make other app to a lib and link to a Qt program to provide interface.

          CodeFreaksC 1 Reply Last reply
          1
          • mrjjM mrjj

            @CodeFreaks
            If the other program is not a Qt program, embedding QWidgets into it
            will not be easy. I mean show QWidgets from the lib would show inside apps
            mainwindow. That sort of integration.

            I think the other way around would make more sense.
            Make other app to a lib and link to a Qt program to provide interface.

            CodeFreaksC Offline
            CodeFreaksC Offline
            CodeFreaks
            wrote on last edited by
            #5

            @mrjj

            @mrjj said in Static Library from Qt UI Project:

            I think the other way around would make more sense.
            Make other app to a lib and link to a Qt program to provide interface.

            thanks for reply unfortunately its not possible because access to the program resources is restricted and there is pour documentation for it.

            mrjjM Pablo J. RoginaP 2 Replies Last reply
            0
            • CodeFreaksC CodeFreaks

              @mrjj

              @mrjj said in Static Library from Qt UI Project:

              I think the other way around would make more sense.
              Make other app to a lib and link to a Qt program to provide interface.

              thanks for reply unfortunately its not possible because access to the program resources is restricted and there is pour documentation for it.

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @CodeFreaks
              Ok but how do you plan to have access to the inner data structures of the
              other app to be shown in Qt widgets, if you do not have the source code work with ?

              1 Reply Last reply
              1
              • CodeFreaksC CodeFreaks

                @mrjj

                @mrjj said in Static Library from Qt UI Project:

                I think the other way around would make more sense.
                Make other app to a lib and link to a Qt program to provide interface.

                thanks for reply unfortunately its not possible because access to the program resources is restricted and there is pour documentation for it.

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

                @CodeFreaks is it possible to configure this "another program that doesn't have proper tools for creating a gui" with a properties/text file right now?
                I mean, if this "another program that doesn't have proper tools for creating a gui" is capable of being run like:

                ./mysterious-app -f super_config.cfg
                

                I'd say create a super-duper Qt app with all the bells and whistles to configure the app w/o gui and save all the settings as a config file. Then you can even have a button in the GUI to launch such app w/o gui with the recently created config file.

                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