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
Forum Updated to NodeBB v4.3 + New Features

Static Library from Qt UI Project

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 3 Posters 827 Views 2 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.
  • C Offline
    C Offline
    CodeFreaks
    wrote on 4 Nov 2018, 16:03 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
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 4 Nov 2018, 16:07 last edited by mrjj 11 Apr 2018, 16:09
      #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
      • C Offline
        C Offline
        CodeFreaks
        wrote on 4 Nov 2018, 16:20 last edited by CodeFreaks 11 Apr 2018, 16:21
        #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.

        M 1 Reply Last reply 4 Nov 2018, 16:40
        0
        • C CodeFreaks
          4 Nov 2018, 16:20

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

          M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 4 Nov 2018, 16:40 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.

          C 1 Reply Last reply 4 Nov 2018, 16:47
          1
          • M mrjj
            4 Nov 2018, 16:40

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

            C Offline
            C Offline
            CodeFreaks
            wrote on 4 Nov 2018, 16:47 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.

            M P 2 Replies Last reply 4 Nov 2018, 20:16
            0
            • C CodeFreaks
              4 Nov 2018, 16:47

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

              M Offline
              M Offline
              mrjj
              Lifetime Qt Champion
              wrote on 4 Nov 2018, 20:16 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
              • C CodeFreaks
                4 Nov 2018, 16:47

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

                P Offline
                P Offline
                Pablo J. Rogina
                wrote on 5 Nov 2018, 17:12 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

                7/7

                5 Nov 2018, 17:12

                • Login

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